IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2006, 3:26:25 PM (20 years ago)
Author:
magnier
Message:

fixed limits on assert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psPolynomialUtils.c

    r7380 r7467  
    124124{
    125125    PS_ASSERT_IMAGE_NON_NULL(image, NULL);
    126     PS_ASSERT_INT_WITHIN_RANGE(x, 0, image->numCols - 1, NULL);
    127     PS_ASSERT_INT_WITHIN_RANGE(y, 0, image->numRows - 1, NULL);
    128126
    129127    long ix = x - image->col0;
    130128    long iy = y - image->row0;
     129
     130    PS_ASSERT_INT_WITHIN_RANGE(ix, 1, image->numCols - 1, NULL);
     131    PS_ASSERT_INT_WITHIN_RANGE(iy, 1, image->numRows - 1, NULL);
    131132
    132133    psF32 *Fm = &image->data.F32[iy - 1][ix];
Note: See TracChangeset for help on using the changeset viewer.