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:
@@ -323,9 +323,6 @@ void CIntValue::SetValue(CValue* newval)
|
||||
#ifdef WITH_PYTHON
|
||||
PyObject *CIntValue::ConvertValueToPython()
|
||||
{
|
||||
if ((m_int > INT_MIN) && (m_int < INT_MAX))
|
||||
return PyLong_FromSsize_t(m_int);
|
||||
else
|
||||
return PyLong_FromLongLong(m_int);
|
||||
return PyLong_FromLongLong(m_int);
|
||||
}
|
||||
#endif // WITH_PYTHON
|
||||
|
||||
Reference in New Issue
Block a user