Changeset 4409 for trunk/psLib/src/collections/psScalar.c
- Timestamp:
- Jun 28, 2005, 10:17:52 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psScalar.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psScalar.c
r4330 r4409 8 8 * @author Ross Harman, MHPCC 9 9 * 10 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-06-2 1 03:01:37$10 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-28 20:17:52 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 22 22 #include "psCollectionsErrors.h" 23 23 24 psScalar* psScalarAlloc( psC64 value, psElemType dataType)24 psScalar* psScalarAlloc(complex value, psElemType type) 25 25 { 26 26 psScalar* scalar = NULL; … … 30 30 31 31 scalar->type.dimen = PS_DIMEN_SCALAR; 32 scalar->type.type = dataType;32 scalar->type.type = type; 33 33 34 switch ( dataType) {34 switch (type) { 35 35 case PS_TYPE_S8: 36 36 scalar->data.S8 = (psS8) value; … … 72 72 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 73 73 PS_ERRORTEXT_psScalar_UNSUPPORTED_TYPE, 74 dataType);74 type); 75 75 psFree(scalar); 76 76 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
