BGE Py API using python3 c/api calls. include bpy_compat.h to support py2.x
This commit is contained in:
@@ -330,7 +330,7 @@ void CIntValue::SetValue(CValue* newval)
|
||||
PyObject* CIntValue::ConvertValueToPython()
|
||||
{
|
||||
if((m_int > INT_MIN) && (m_int < INT_MAX))
|
||||
return PyInt_FromLong(m_int);
|
||||
return PyLong_FromSsize_t(m_int);
|
||||
else
|
||||
return PyLong_FromLongLong(m_int);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user