IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 20, 2012, 3:06:34 PM (14 years ago)
Author:
eugene
Message:

allow all vector results to yield 0 length vectors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/opihi/cmd.data/reindex.c

    r30610 r33311  
    2222
    2323  // ovec matches ivec in type and xvec in size (xvec need not have all ivec elements, and may have duplicates
    24   ResetVector (ovec, ivec->type, MAX (xvec[0].Nelements, 1));
     24  ResetVector (ovec, ivec->type, xvec[0].Nelements);
    2525
    2626  Nmax = ivec[0].Nelements - 1;
     
    5151
    5252  // free up unused memory
    53   ResetVector (ovec, ivec->type, MAX (Npts, 1));
     53  ResetVector (ovec, ivec->type, Npts);
    5454  return (TRUE);
    5555
Note: See TracChangeset for help on using the changeset viewer.