IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23791


Ignore:
Timestamp:
Apr 9, 2009, 8:38:49 PM (17 years ago)
Author:
Paul Price
Message:

Fixing warning regarding uninitialised use.

File:
1 edited

Legend:

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

    r23789 r23791  
    9191    bool clean = true;                  // Is the footprint clean?
    9292    int numCols = mask->numCols, numRows = mask->numRows; // Size of image
     93
     94    int xMin = PS_MAX(x - footprint, 0), xMax = PS_MIN(x + footprint, numCols - 1); // Bounds in x
     95    int yMin = PS_MAX(y - footprint, 0), yMax = PS_MIN(y + footprint, numRows - 1); // Bounds in y
    9396
    9497    // Check the footprint bounds
     
    123126
    124127    // Check the footprint
    125     int xMin = PS_MAX(x - footprint, 0), xMax = PS_MIN(x + footprint, numCols - 1); // Bounds in x
    126     int yMin = PS_MAX(y - footprint, 0), yMax = PS_MIN(y + footprint, numRows - 1); // Bounds in y
    127128    if (clean) {
    128129        for (int j = yMin; j <= yMax; j++) {
Note: See TracChangeset for help on using the changeset viewer.