IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 16, 2005, 1:07:10 PM (20 years ago)
Author:
desonia
Message:

removed *(type*)& syntax for setting const values of struts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImagePixelExtract.c

    r5511 r5530  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-11-14 22:18:33 $
     10 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-11-16 23:06:14 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2222
    2323#include "psErrorText.h"
    24 
    2524
    2625#define FUNC_MACRO_VECTOR_STORE_ROW(TYPE) \
     
    407406        imgVec = psAlloc(sizeof(psVector));
    408407        imgVec->type = input->type;
    409         imgVec->n = *(int*)&imgVec->nalloc = numCols;
     408
     409        P_PSVECTOR_SET_NALLOC(imgVec,numCols);
     410        imgVec->n = numCols;
    410411        if (mask != NULL) {
    411412            maskVec = psAlloc(sizeof(psVector));
    412413            maskVec->type = mask->type;
    413             maskVec->n = *(int*)&maskVec->nalloc = numCols;
     414            P_PSVECTOR_SET_NALLOC(maskVec,numCols);
     415            maskVec->n = numCols;
    414416        }
    415417        // recycle output to make a proper sized/type output structure
Note: See TracChangeset for help on using the changeset viewer.