mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Use != to make long
This commit is contained in:
parent
417dfe4a7b
commit
15e24547f2
|
@ -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*
|
||||
|
|
Loading…
Reference in New Issue
Block a user