IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15115


Ignore:
Timestamp:
Sep 29, 2007, 12:18:09 PM (19 years ago)
Author:
eugene
Message:

fixed edge case error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psArray.c

    r15076 r15115  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.63 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2007-09-28 21:03:24 $
     11 *  @version $Revision: 1.64 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2007-09-29 22:18:09 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    282282        long j = (I << 1) + 1;
    283283        while (j <= J) {
    284             result = func (in->data[index[j]], in->data[index[j+1]]);
    285             if ((j < J) && (result < 0)) {
    286                 j++;
     284            if (j < J) {
     285                result = func (in->data[index[j]], in->data[index[j+1]]);
     286                if (result < 0) {
     287                    j++;
     288                }
    287289            }
    288290            result = func (in->data[temp], in->data[index[j]]);
Note: See TracChangeset for help on using the changeset viewer.