Merge pull request #2778 from wiredfool/pr_2775

Fix warning on pointer cast in isblock
This commit is contained in:
wiredfool 2017-10-02 11:52:07 +01:00 committed by GitHub
commit 46845bafc5

View File

@ -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*