IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30208


Ignore:
Timestamp:
Jan 7, 2011, 9:57:06 AM (15 years ago)
Author:
eugene
Message:

allow a subset vector to have 0 elements

File:
1 edited

Legend:

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

    r27491 r30208  
    3434
    3535  // ovec matches ivec in type
    36   ResetVector (ovec, ivec->type, MAX (tvec[0].Nelements, 1));
     36  ResetVector (ovec, ivec->type, tvec[0].Nelements);
    3737
    3838  // we have four cases: (ivec == flt or int) and (tvec == flt or int)
     
    7575
    7676  // free up unused memory
    77   ResetVector (ovec, ivec->type, MAX (Npts, 1));
     77  ResetVector (ovec, ivec->type, Npts);
    7878
    7979  DeleteVector (tvec);
Note: See TracChangeset for help on using the changeset viewer.