Fix a bug in quantize() causing PIL crashes.

From German Bravo's Image-SIG post:
http://mail.python.org/pipermail/image-sig/2012-June/007047.html
This commit is contained in:
Lars Yencken 2012-09-05 13:23:57 +10:00
parent 7c4437f64b
commit 155347fe87

View File

@ -914,7 +914,7 @@ map_image_pixels_from_median_box(
unsigned long bestdist,bestmatch,dist; unsigned long bestdist,bestmatch,dist;
unsigned long initialdist; unsigned long initialdist;
HashTable h2; HashTable h2;
int pixelVal; unsigned long pixelVal;
h2=hashtable_new(unshifted_pixel_hash,unshifted_pixel_cmp); h2=hashtable_new(unshifted_pixel_hash,unshifted_pixel_cmp);
for (i=0;i<nPixels;i++) { for (i=0;i<nPixels;i++) {