IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3110


Ignore:
Timestamp:
Feb 2, 2005, 11:58:09 AM (21 years ago)
Author:
evanalst
Message:

Fix how set iterator operates with negative location specified.

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psList.c

    r3107 r3110  
    66 *  @author Robert Daniel DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-02-02 20:21:48 $
     8 *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-02-02 21:58:09 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    205205
    206206    if (location < 0) {
    207         location = list->size + location;
     207        location = (list->size + 1) + location;
    208208    }
    209209
  • trunk/psLib/src/types/psList.c

    r3107 r3110  
    66 *  @author Robert Daniel DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-02-02 20:21:48 $
     8 *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-02-02 21:58:09 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    205205
    206206    if (location < 0) {
    207         location = list->size + location;
     207        location = (list->size + 1) + location;
    208208    }
    209209
Note: See TracChangeset for help on using the changeset viewer.