BGE Py API using python3 c/api calls. include bpy_compat.h to support py2.x

This commit is contained in:
2009-06-29 02:25:54 +00:00
parent bb1f24ac44
commit c50bbe5ae7
66 changed files with 317 additions and 325 deletions

View File

@@ -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);
}