IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14838


Ignore:
Timestamp:
Sep 14, 2007, 3:04:02 PM (19 years ago)
Author:
Paul Price
Message:

Only go to the penultimate source, since going to the last one can
produce a SEGV (j = i+1 is out of bounds).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionStamps.c

    r14802 r14838  
    303303        int minDistance2 = PS_SQR(exclusionZone); // Minimum square distance for other stars
    304304        psVector *indexes = psVectorSortIndex(NULL, x); // Indices for sorting in x
    305         for (int i = 0; i < numStars; i++) {
     305        for (int i = 0; i < numStars - 1; i++) {
    306306            int iIndex = indexes->data.S32[i]; // Index for star i
    307307            if (exclude->data.U8[iIndex]) {
Note: See TracChangeset for help on using the changeset viewer.