Changeset 1651
- Timestamp:
- Aug 27, 2004, 1:54:33 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
collections/psArray.c (modified) (2 diffs)
-
types/psArray.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psArray.c
r1440 r1651 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-08- 09 23:34:57$11 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-27 23:54:33 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 70 70 71 71 if (in == NULL) { 72 psError(__func__, "Null input vector\n"); 73 return NULL; 72 return psArrayAlloc(nalloc); 74 73 } else if (in->nalloc != nalloc) { // No need to realloc to same size 75 74 if (nalloc < in->n) { -
trunk/psLib/src/types/psArray.c
r1440 r1651 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-08- 09 23:34:57$11 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-27 23:54:33 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 70 70 71 71 if (in == NULL) { 72 psError(__func__, "Null input vector\n"); 73 return NULL; 72 return psArrayAlloc(nalloc); 74 73 } else if (in->nalloc != nalloc) { // No need to realloc to same size 75 74 if (nalloc < in->n) {
Note:
See TracChangeset
for help on using the changeset viewer.
