diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2009-09-25 00:20:43 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2009-09-25 00:20:43 +0400 |
commit | ebfc93de214f308a4c76a7c64c5c4b0e45b2182d (patch) | |
tree | 80362d7a60d3e63d6e1e9e3c74e1c341b98743e2 /source/gameengine/Ketsji/KX_PyMath.h | |
parent | ddb46e12f9489efa03e86e2e03efc19913d6c775 (diff) |
* explicit cast needed for mingw.
Diffstat (limited to 'source/gameengine/Ketsji/KX_PyMath.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_PyMath.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_PyMath.h b/source/gameengine/Ketsji/KX_PyMath.h index 17102905607..1ce8bcafbb6 100644 --- a/source/gameengine/Ketsji/KX_PyMath.h +++ b/source/gameengine/Ketsji/KX_PyMath.h @@ -157,7 +157,7 @@ bool PyVecTo(PyObject* pyval, T& vec) return true; } - else if (PyObject_TypeCheck(pyval, &PyObjectPlus::Type)) + else if (PyObject_TypeCheck(pyval, (PyTypeObject *)&PyObjectPlus::Type)) { /* note, include this check because PySequence_Check does too much introspection * on the PyObject (like getting its __class__, on a BGE type this means searching up * the parent list each time only to discover its not a sequence. |