IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2006, 12:55:05 PM (20 years ago)
Author:
Paul Price
Message:

Following today's meeting, we agreed that psVectorAlloc (and therefore
psArrayAlloc also) shall set the number of elements in use to equal the
number of elements allocated. We introduce new functions,
psVectorAllocEmpty and psArrayAllocEmpty, that allocate a vector and set
the length to zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAMaskWeight.c

    r9594 r9730  
    2929    if (!masks) {
    3030        masks = psArrayAlloc(images->n);
    31         masks->n = images->n;
    3231        hdu->masks = masks;
    3332    }
     
    5655    if (!weights) {
    5756        weights = psArrayAlloc(images->n);
    58         weights->n = images->n;
    5957        hdu->weights = weights;
    6058    }
Note: See TracChangeset for help on using the changeset viewer.