Use != to make long

This commit is contained in:
Eric Soroos 2017-10-02 08:49:48 +00:00
parent 417dfe4a7b
commit 15e24547f2

View File

@ -1756,14 +1756,7 @@ _box_blur(ImagingObject* self, PyObject* args)
static PyObject*
_isblock(ImagingObject* self, PyObject* args)
{
if (self->image->block == NULL) {
Py_INCREF(Py_False);
return Py_False;
}
else {
Py_INCREF(Py_True);
return Py_True;
}
return PyBool_FromLong(self->image->block != NULL);
}
static PyObject*