Index: trunk/psLib/src/collections/psVector.c
===================================================================
--- trunk/psLib/src/collections/psVector.c	(revision 4409)
+++ trunk/psLib/src/collections/psVector.c	(revision 4493)
@@ -9,6 +9,6 @@
 *  @author Robert DeSonia, MHPCC
 *
-*  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-06-28 20:17:52 $
+*  @version $Revision: 1.46 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-07-07 02:17:53 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -48,5 +48,5 @@
 // FUNCTION IMPLEMENTATION - PUBLIC
 
-psVector* psVectorAlloc(unsigned long nalloc, psElemType type)
+psVector* psVectorAlloc( long nalloc, psElemType type)
 {
     psVector* psVec = NULL;
@@ -67,5 +67,5 @@
     psVec->type.dimen = PS_DIMEN_VECTOR;
     psVec->type.type = type;
-    *(int*)&psVec->nalloc = nalloc;
+    *(long*)&psVec->nalloc = nalloc;
     psVec->n = nalloc;
 
@@ -76,5 +76,5 @@
 }
 
-psVector* psVectorRealloc(psVector* vector, unsigned long nalloc)
+psVector* psVectorRealloc(psVector* vector, long nalloc)
 {
     psS32 elementSize = 0;
@@ -93,5 +93,5 @@
         // Realloc after decrementation to avoid accessing freed array elements
         vector->data.U8 = psRealloc(vector->data.U8, nalloc * elementSize);
-        *(int*)&vector->nalloc = nalloc;
+        *(long*)&vector->nalloc = nalloc;
     }
 
@@ -99,5 +99,5 @@
 }
 
-psVector* psVectorRecycle(psVector* vector, unsigned long nalloc, psElemType type)
+psVector* psVectorRecycle(psVector* vector, long nalloc, psElemType type)
 {
     psS32 byteSize;
@@ -120,5 +120,5 @@
     if (byteSize > vector->nalloc*PSELEMTYPE_SIZEOF(vector->type.type)) {
         vector->data.U8 = psRealloc(vector->data.U8, byteSize);
-        *(int*)&vector->nalloc = nalloc;
+        *(long*)&vector->nalloc = nalloc;
     }
 
