From a8f45c59ce7ab77d7a35e96f5f83a4606d0f0bea Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 8 Jul 2012 21:44:52 +0000 Subject: fix bug from previous cleanup git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1712 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/ppm/ppmtospu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'converter') diff --git a/converter/ppm/ppmtospu.c b/converter/ppm/ppmtospu.c index e6b737a8..c655ca05 100644 --- a/converter/ppm/ppmtospu.c +++ b/converter/ppm/ppmtospu.c @@ -255,7 +255,7 @@ sort(struct PixelType * const pixelType, for (i = left, j = right; i <= j; ) { while (pixelType[i].popularity < pivot) ++i; - while (pixelType[j].popularity >= pivot) + while (pixelType[j].popularity > pivot) --j; if (i <= j) { -- cgit 1.4.1