use Py_TYPE macro (no functional changes)

This commit is contained in:
Campbell Barton
2011-11-03 13:10:37 +00:00
parent 0e51c9014c
commit d210703bca
7 changed files with 27 additions and 27 deletions

View File

@@ -91,7 +91,7 @@ static PyObject * imageToArray (PyObject * self, PyObject *args)
// parameter is Image object
PyObject * pyImg;
char *mode = NULL;
if (!PyArg_ParseTuple(args, "O|s:imageToArray", &pyImg, &mode) || !pyImageTypes.in(pyImg->ob_type))
if (!PyArg_ParseTuple(args, "O|s:imageToArray", &pyImg, &mode) || !pyImageTypes.in(Py_TYPE(pyImg)))
{
// if object is incorect, report error
PyErr_SetString(PyExc_TypeError, "VideoTexture.imageToArray(image): The value must be a image source object");