IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2005, 7:58:58 AM (21 years ago)
Author:
desonia
Message:

changed name of fileUtils to dataIO to better coorespond to the latest
SDRS.

File:
1 edited

Legend:

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

    r3682 r3684  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2005-04-07 20:27:41 $
     11*  @version $Revision: 1.38 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2005-04-08 17:58:57 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5555    psVec->type.dimen = PS_DIMEN_VECTOR;
    5656    psVec->type.type = elemType;
    57     psVec->nalloc = nalloc;
     57    *(int*)&psVec->nalloc = nalloc;
    5858    psVec->n = nalloc;
    5959
     
    8181        // Realloc after decrementation to avoid accessing freed array elements
    8282        in->data.U8 = psRealloc(in->data.U8, nalloc * elementSize);
    83         in->nalloc = nalloc;
     83        *(int*)&in->nalloc = nalloc;
    8484    }
    8585
     
    108108    if (byteSize > in->nalloc*PSELEMTYPE_SIZEOF(in->type.type)) {
    109109        in->data.U8 = psRealloc(in->data.U8, byteSize);
    110         in->nalloc = n;
     110        *(int*)&in->nalloc = n;
    111111    }
    112112
Note: See TracChangeset for help on using the changeset viewer.