From cee97b83cc3d2f3f3884392daa89965db0c7dfda Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Fri, 8 Mar 2013 11:03:43 -0800 Subject: [PATCH] 64 bit proof ImagingNew --- libImaging/Storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libImaging/Storage.c b/libImaging/Storage.c index 76a66c2a5..243d2f4f6 100644 --- a/libImaging/Storage.c +++ b/libImaging/Storage.c @@ -369,7 +369,7 @@ ImagingNew(const char* mode, int xsize, int ysize) } else bytes = strlen(mode); /* close enough */ - if ((long) xsize * ysize * bytes <= THRESHOLD) { + if ((Py_ssize_t) xsize * ysize * bytes <= THRESHOLD) { im = ImagingNewBlock(mode, xsize, ysize); if (im) return im;