diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2005-11-28 09:51:54 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2005-11-28 09:51:54 +0300 |
commit | e1c66eb14509c9f6f4c59edd8a541e3d49d90cef (patch) | |
tree | 3237f6c534b1e7a5a801bb327f55de35425ff5e4 /source/gameengine/Ketsji/KX_PyConstraintBinding.cpp | |
parent | 427cae9eebaceeac80f8e7a151661aa36f18db01 (diff) |
applied the 64-bit pointer patch submitted by Ken Hughes
Diffstat (limited to 'source/gameengine/Ketsji/KX_PyConstraintBinding.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_PyConstraintBinding.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp index f11a9a763fe..2317f9c3a9c 100644 --- a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp +++ b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp @@ -352,13 +352,17 @@ static PyObject* gPyRemoveConstraint(PyObject* self, PyObject* args, PyObject* kwds) { - int constraintid; - - if (PyArg_ParseTuple(args,"i",&constraintid)) +#if defined(_WIN64) + __int64 constraintid; + if (PyArg_ParseTuple(args,"L",&constraintid)) +#else + long constraintid; + if (PyArg_ParseTuple(args,"l",&constraintid)) +#endif { if (PHY_GetActiveEnvironment()) { - PHY_GetActiveEnvironment()->removeConstraint(constraintid); + PHY_GetActiveEnvironment()->removeConstraint((void *)constraintid); } } Py_INCREF(Py_None); return Py_None; |