mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 05:06:49 +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*
|
static PyObject*
|
||||||
_isblock(ImagingObject* self, PyObject* args)
|
_isblock(ImagingObject* self, PyObject* args)
|
||||||
{
|
{
|
||||||
if (self->image->block == NULL) {
|
return PyBool_FromLong(self->image->block != NULL);
|
||||||
Py_INCREF(Py_False);
|
|
||||||
return Py_False;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
Py_INCREF(Py_True);
|
|
||||||
return Py_True;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject*
|
static PyObject*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user