about summary refs log tree commit diff
path: root/converter/ppm
diff options
context:
space:
mode:
Diffstat (limited to 'converter/ppm')
-rw-r--r--converter/ppm/ppmtospu.c2
1 files changed, 1 insertions, 1 deletions
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) {