py3k: inquiry is now lenfunc

This fixes a build warning on 64-bit machines.
This commit is contained in:
Brian J. Crowell 2012-10-30 17:38:05 -05:00 committed by Brian Crowell
parent ec961de303
commit a1c1654594

View File

@ -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*/
};