Index: trunk/psModules/src/imcombine/pmReadoutCombine.c
===================================================================
--- trunk/psModules/src/imcombine/pmReadoutCombine.c	(revision 7283)
+++ trunk/psModules/src/imcombine/pmReadoutCombine.c	(revision 7362)
@@ -5,6 +5,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-06-02 02:16:05 $
+ *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-06-06 03:32:59 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -330,5 +330,5 @@
                 }
                 // High pixels
-                for (int k = pixels->n - 1, numMasked = 0; numMasked < numHigh && k < index->n; k++) {
+                for (int k = pixels->n - 1, numMasked = 0; numMasked < numHigh && k >= 0; k--) {
                     // Don't count the ones that are already masked
                     if (! mask->data.U8[index->data.S32[k]]) {
