Browse Source

Fix the Py_ssize_t issues.

Darryl Pogue 13 years ago
parent
commit
f3b3b2a354
  1. 4
      Sources/Plasma/FeatureLib/pfPython/pyGUIControlMultiLineEdit.cpp
  2. 2
      Sources/Plasma/FeatureLib/pfPython/pyVaultImageNode.cpp

4
Sources/Plasma/FeatureLib/pfPython/pyGUIControlMultiLineEdit.cpp

@ -182,7 +182,7 @@ void pyGUIControlMultiLineEdit::SetEncodedBuffer( PyObject* buffer_object )
{ {
// something to do here... later // something to do here... later
uint8_t* daBuffer = nil; uint8_t* daBuffer = nil;
ssize_t length; Py_ssize_t length;
PyObject_AsReadBuffer( buffer_object, (const void**)&daBuffer, &length); PyObject_AsReadBuffer( buffer_object, (const void**)&daBuffer, &length);
if ( daBuffer != nil ) if ( daBuffer != nil )
{ {
@ -218,7 +218,7 @@ void pyGUIControlMultiLineEdit::SetEncodedBufferW( PyObject* buffer_object )
{ {
// something to do here... later // something to do here... later
uint16_t* daBuffer = nil; uint16_t* daBuffer = nil;
ssize_t length; Py_ssize_t length;
PyObject_AsReadBuffer( buffer_object, (const void**)&daBuffer, &length); PyObject_AsReadBuffer( buffer_object, (const void**)&daBuffer, &length);
if ( daBuffer != nil ) if ( daBuffer != nil )
{ {

2
Sources/Plasma/FeatureLib/pfPython/pyVaultImageNode.cpp

@ -211,7 +211,7 @@ void pyVaultImageNode::SetImageFromBuf( PyObject * pybuf )
} }
uint8_t * buffer = nil; uint8_t * buffer = nil;
ssize_t bytes; Py_ssize_t bytes;
PyObject_AsReadBuffer(pybuf, (const void **)&buffer, &bytes); PyObject_AsReadBuffer(pybuf, (const void **)&buffer, &bytes);
if (buffer) { if (buffer) {
VaultImageNode access(fNode); VaultImageNode access(fNode);

Loading…
Cancel
Save