IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40811


Ignore:
Timestamp:
Jun 22, 2019, 3:30:13 PM (7 years ago)
Author:
eugene
Message:

fix mem corruption error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20190329/src/opihi/cmd.data/interpolate_presort.c

    r40663 r40811  
    4343  y0 = yin[0].elements.Flt[0];
    4444 
    45   /* in and out vectors are sorted */
    46   j = 0;
    47   i = 0;
    48 
    49   // fill in the rest with NANs
    50   while (xout[0].elements.Flt[i] < xin[0].elements.Flt[0]) {
     45  // fill in the start with NANs
     46  for (i = 0; (i < xout[0].Nelements) && (xout[0].elements.Flt[i] < xin[0].elements.Flt[0]); i++) {
    5147    yout[0].elements.Flt[i] = FillEnds ? yin[0].elements.Flt[0] : NAN;
    52     i++;
    5348  }
    5449
Note: See TracChangeset for help on using the changeset viewer.