mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
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:
parent
7c4437f64b
commit
155347fe87
|
@ -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<nPixels;i++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user