IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 18, 2006, 12:37:01 PM (20 years ago)
Author:
Paul Price
Message:

Updating vector and array behaviour to conform with psLib rel11 --- vector and array lengths ('n' member) are no longer set in the allocation, but must be set by the user.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmFPARead.c

    r6872 r6888  
    142142        hdu->images = psArrayAlloc(naxis3);
    143143    }
    144     if (hdu->images->n != naxis3) {
     144    if (hdu->images->nalloc != naxis3) {
    145145        hdu->images = psArrayRealloc(hdu->images, naxis3);
     146        hdu->images->n = naxis3;
    146147    }
    147148    if (hdu->images->data[z]) {
Note: See TracChangeset for help on using the changeset viewer.