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

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

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

Loading…
Cancel
Save