From 155347fe87de39b23564a29c37b9dd7f23b8fea3 Mon Sep 17 00:00:00 2001 From: Lars Yencken Date: Wed, 5 Sep 2012 13:23:57 +1000 Subject: [PATCH] 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 --- libImaging/Quant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libImaging/Quant.c b/libImaging/Quant.c index 1b76a6a0f..d25ba05dd 100644 --- a/libImaging/Quant.c +++ b/libImaging/Quant.c @@ -914,7 +914,7 @@ map_image_pixels_from_median_box( unsigned long bestdist,bestmatch,dist; unsigned long initialdist; HashTable h2; - int pixelVal; + unsigned long pixelVal; h2=hashtable_new(unshifted_pixel_hash,unshifted_pixel_cmp); for (i=0;i