IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6889


Ignore:
Timestamp:
Apr 18, 2006, 12:39:15 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.

Location:
trunk/psModules/src/astrom
Files:
2 edited

Legend:

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

    r6888 r6889  
    141141    if (!hdu->images) {
    142142        hdu->images = psArrayAlloc(naxis3);
     143        hdu->images->n = naxis3;
    143144    }
    144145    if (hdu->images->nalloc != naxis3) {
  • trunk/psModules/src/astrom/pmReadout.c

    r6872 r6889  
    4646    if (! weights) {
    4747        weights = psArrayAlloc(pixels->n);
     48        weights->n = pixels->n;
    4849        for (int i = 0; i < pixels->n; i++) {
    4950            psImage *image = pixels->data[i];
     
    5556    if (! masks) {
    5657        masks = psArrayAlloc(pixels->n);
     58        masks->n = pixels->n;
    5759        for (int i = 0; i < pixels->n; i++) {
    5860            psImage *image = pixels->data[i];
Note: See TracChangeset for help on using the changeset viewer.