IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33433 for trunk/psModules


Ignore:
Timestamp:
Mar 7, 2012, 11:24:07 AM (14 years ago)
Author:
bills
Message:

Fix bug in psVectorBracket which was resulting in a non finite aperture correction term

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/extras/psVectorBracket.c

    r10610 r33433  
    5151        }
    5252    }
    53     // at this point, index[Nhi] >= key > index[Nlo]
    54     N = Nhi;
     53    N = (Nhi >= index->n) ? Nhi - 1 : Nhi;
     54    // at this point, index[N] >= key > index[Nlo]
    5555    while ((index->data.F32[N] >= key) && (N > Nlo)) {
    5656        N--;
Note: See TracChangeset for help on using the changeset viewer.