IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1305


Ignore:
Timestamp:
Jul 27, 2004, 2:06:13 PM (22 years ago)
Author:
evanalst
Message:

Add check for output vector to be of type U32.

Location:
trunk/psLib/src
Files:
2 edited

Legend:

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

    r1302 r1305  
    88 *  @author Ross Harman, MHPCC
    99 *
    10  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-07-27 23:25:19 $
     10 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-07-28 00:06:13 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    285285    }
    286286
     287    if(outVector->type.type != PS_TYPE_U32) {
     288        psError(__func__, " : Line %d - Output vector is not of type U32: out=%d\n",
     289                __LINE__, outVector->type.type);
     290        return outVector;
     291    }
     292
    287293    tmpVector = psVectorAlloc(inN, inType);
    288294    tmpVector->n = inN;
  • trunk/psLib/src/mathtypes/psVector.c

    r1302 r1305  
    88 *  @author Ross Harman, MHPCC
    99 *
    10  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-07-27 23:25:19 $
     10 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-07-28 00:06:13 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    285285    }
    286286
     287    if(outVector->type.type != PS_TYPE_U32) {
     288        psError(__func__, " : Line %d - Output vector is not of type U32: out=%d\n",
     289                __LINE__, outVector->type.type);
     290        return outVector;
     291    }
     292
    287293    tmpVector = psVectorAlloc(inN, inType);
    288294    tmpVector->n = inN;
Note: See TracChangeset for help on using the changeset viewer.