py api cleanup, replace use...
- PyLong_FromSsize_t --> PyLong_FromLong - PyLong_AsSsize_t --> PyLong_AsLong In all places except for those where python api expects PySsize_t (index lookups mainly). - use PyBool_FromLong in a few areas of the BGE. - fix incorrect assumption in the BGE that PySequence_Check() means PySequence_Fast_ functions can be used.
This commit is contained in:
@@ -241,7 +241,7 @@ PyAttributeDef SCA_IController::Attributes[] = {
|
||||
PyObject *SCA_IController::pyattr_get_state(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef)
|
||||
{
|
||||
SCA_IController* self = static_cast<SCA_IController*>(self_v);
|
||||
return PyLong_FromSsize_t(self->m_statemask);
|
||||
return PyLong_FromLong(self->m_statemask);
|
||||
}
|
||||
|
||||
PyObject *SCA_IController::pyattr_get_sensors(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef)
|
||||
|
||||
Reference in New Issue
Block a user