IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19204


Ignore:
Timestamp:
Aug 25, 2008, 3:23:42 PM (18 years ago)
Author:
Paul Price
Message:

Fixing compilation error. Didn't set sizes.

File:
1 edited

Legend:

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

    r19202 r19204  
    594594
    595595    int numOut = 0;                     // Number of sources in output list
    596     for (int i = 0; i < numSources; i++) {
     596    for (int i = 0; i < numIn; i++) {
    597597        pmSource *source = sources->data[i]; // Source of interest
    598598        if (!source || (source->mode & SOURCE_MASK) || !isfinite(source->psfMag) ||
     
    610610        numOut++;
    611611    }
     612    x->n = numOut;
     613    y->n = numOut;
     614    flux->n = numOut;
    612615
    613616    pmSubtractionStampList *stamps = pmSubtractionStampsSet(x, y, flux, NULL, subMask, region,
Note: See TracChangeset for help on using the changeset viewer.