IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 24, 2008, 1:01:42 PM (18 years ago)
Author:
Paul Price
Message:

Range checking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageConvolve.c

    r17809 r17810  
    77/// @author Eugene Magnier, IfA
    88///
    9 /// @version $Revision: 1.70 $ $Name: not supported by cvs2svn $
    10 /// @date $Date: 2008-05-24 22:47:11 $
     9/// @version $Revision: 1.71 $ $Name: not supported by cvs2svn $
     10/// @date $Date: 2008-05-24 23:01:42 $
    1111///
    1212/// Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    833833        if (masking) {
    834834            // Mask from the minimum to the end of the row
     835            min = PS_MAX(0, min);
    835836            memset(&convData[y][min], 0xff, (numCols - min) * PSELEMTYPE_SIZEOF(PS_TYPE_MASK));
    836837        }
     
    860861        if (masking) {
    861862            // Mask from the minimum to the end of the column
    862             for (int i = min; i < numRows; i++) {
     863            for (int i = PS_MAX(0, min); i < numRows; i++) {
    863864                outData[i][x] |= setVal;
    864865            }
Note: See TracChangeset for help on using the changeset viewer.