- Fix incorrect usage of PySequence_Fast_GET_ITEM()
- make EXPP_setFloatRange() convert its argument to float instead of short
This commit is contained in:
Ken Hughes
2005-10-03 22:06:16 +00:00
parent b4c85d58f6
commit b777b23e07
5 changed files with 23 additions and 20 deletions

View File

@@ -2440,7 +2440,7 @@ static PyObject *Texture_oldsetFlags( BPy_Texture * self, PyObject * args )
for ( i = PyTuple_Size( args ); i-- ; ) {
short thisflag;
char * name = PyString_AsString( PySequence_Fast_GET_ITEM( args, i ) );
char * name = PyString_AsString( PyTuple_GET_ITEM( args, i ) );
if( !name )
return EXPP_ReturnPyObjError ( PyExc_AttributeError,
"expected string argument" );
@@ -2622,7 +2622,7 @@ static PyObject *Texture_oldsetImageFlags( BPy_Texture * self, PyObject * args )
for( i = PyTuple_Size( args ); i-- ; ) {
short thisflag;
char * name = PyString_AsString( PySequence_Fast_GET_ITEM( args, i ) );
char * name = PyString_AsString( PyTuple_GET_ITEM( args, i ) );
if( !name )
return EXPP_ReturnPyObjError ( PyExc_AttributeError,
"expected string argument" );