diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-29 16:37:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-29 16:37:44 +0400 |
commit | c034a252bb08be3879ee14e7c0db2204e03d4817 (patch) | |
tree | 1590159203ee0c5e144ef1918a8c221c6b2cc52c /source/blender/python | |
parent | 1dcf95684929806e80e3d0b514c8690cd757b1bd (diff) |
Code cleanup: quiet warnings
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Matrix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/mathutils/mathutils_Matrix.c b/source/blender/python/mathutils/mathutils_Matrix.c index baadd4dde29..6129bb869f5 100644 --- a/source/blender/python/mathutils/mathutils_Matrix.c +++ b/source/blender/python/mathutils/mathutils_Matrix.c @@ -1251,7 +1251,7 @@ static bool matrix_invert_args_check(const MatrixObject *self, PyObject *args, b return true; case 1: if (check_type) { - const MatrixObject *fallback = PyTuple_GET_ITEM(args, 0); + const MatrixObject *fallback = (MatrixObject *)PyTuple_GET_ITEM(args, 0); if (!MatrixObject_Check(fallback)) { PyErr_SetString(PyExc_TypeError, "Matrix.invert: " @@ -1314,7 +1314,7 @@ static PyObject *Matrix_invert(MatrixObject *self, PyObject *args) } else { if (PyTuple_GET_SIZE(args) == 1) { - MatrixObject *fallback = PyTuple_GET_ITEM(args, 0); + MatrixObject *fallback = (MatrixObject *)PyTuple_GET_ITEM(args, 0); if (BaseMath_ReadCallback(fallback) == -1) return NULL; |