From a1c16545944ed20112b046b77b98243c8787bddb Mon Sep 17 00:00:00 2001 From: "Brian J. Crowell" Date: Tue, 30 Oct 2012 17:38:05 -0500 Subject: [PATCH] py3k: inquiry is now lenfunc This fixes a build warning on 64-bit machines. --- _imaging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_imaging.c b/_imaging.c index 59b045abf..986f221e4 100644 --- a/_imaging.c +++ b/_imaging.c @@ -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*/ };