mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
py3k: inquiry is now lenfunc
This fixes a build warning on 64-bit machines.
This commit is contained in:
parent
ec961de303
commit
a1c1654594
|
@ -3033,7 +3033,7 @@ image_item(ImagingObject *self, Py_ssize_t i)
|
|||
}
|
||||
|
||||
static PySequenceMethods image_as_sequence = {
|
||||
(inquiry) image_length, /*sq_length*/
|
||||
(lenfunc) image_length, /*sq_length*/
|
||||
(binaryfunc) NULL, /*sq_concat*/
|
||||
(ssizeargfunc) NULL, /*sq_repeat*/
|
||||
(ssizeargfunc) image_item, /*sq_item*/
|
||||
|
@ -3152,7 +3152,7 @@ static PyTypeObject ImagingDraw_Type = {
|
|||
#endif
|
||||
|
||||
static PyMappingMethods pixel_access_as_mapping = {
|
||||
(inquiry) NULL, /*mp_length*/
|
||||
(lenfunc) NULL, /*mp_length*/
|
||||
(binaryfunc) pixel_access_getitem, /*mp_subscript*/
|
||||
(objobjargproc) pixel_access_setitem, /*mp_ass_subscript*/
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user