mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-28 10:56:18 +03:00
Merge pull request #2778 from wiredfool/pr_2775
Fix warning on pointer cast in isblock
This commit is contained in:
commit
46845bafc5
|
@ -1756,7 +1756,7 @@ _box_blur(ImagingObject* self, PyObject* args)
|
|||
static PyObject*
|
||||
_isblock(ImagingObject* self, PyObject* args)
|
||||
{
|
||||
return PyInt_FromLong((long) self->image->block);
|
||||
return PyBool_FromLong(self->image->block != NULL);
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
|
|
Loading…
Reference in New Issue
Block a user