Code cleanup: quiet warnings

This commit is contained in:
2014-04-29 22:37:05 +10:00
parent 1dcf956849
commit c034a252bb
2 changed files with 3 additions and 3 deletions

View File

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