IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 24, 2006, 1:43:16 PM (20 years ago)
Author:
drobbin
Message:

Changed psArray & psVector to zero 'n' upon allocation. Used to set vector->n = nalloc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psVector.c

    r6227 r6484  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.64 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2006-01-28 01:12:14 $
     11*  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2006-02-24 23:43:15 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    8888    psVec->type.type = type;
    8989    P_PSVECTOR_SET_NALLOC(psVec,nalloc);
    90     psVec->n = nalloc;
     90    //    psVec->n = nalloc;
     91    psVec->n = 0;
    9192
    9293    // Create vector data array
     
    205206
    206207    output = psVectorRecycle(output, nElements, type);
     208    output->n = nElements;
    207209
    208210    #define PSVECTOR_COPY(INTYPE,OUTTYPE) { \
     
    754756    int nBin = (upper - lower) / delta; \
    755757    psVector *vec = psVectorRecycle(input, nBin, PS_TYPE_##TYPE); \
     758    vec->n = nBin; \
    756759    for (int i = 0; i < nBin; i++) \
    757760    { \
Note: See TracChangeset for help on using the changeset viewer.