Index: trunk/psLib/src/imageops/psImagePixelExtract.c
===================================================================
--- trunk/psLib/src/imageops/psImagePixelExtract.c	(revision 5511)
+++ trunk/psLib/src/imageops/psImagePixelExtract.c	(revision 5530)
@@ -8,6 +8,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-11-14 22:18:33 $
+ *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-11-16 23:06:14 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -22,5 +22,4 @@
 
 #include "psErrorText.h"
-
 
 #define FUNC_MACRO_VECTOR_STORE_ROW(TYPE) \
@@ -407,9 +406,12 @@
         imgVec = psAlloc(sizeof(psVector));
         imgVec->type = input->type;
-        imgVec->n = *(int*)&imgVec->nalloc = numCols;
+
+        P_PSVECTOR_SET_NALLOC(imgVec,numCols);
+        imgVec->n = numCols;
         if (mask != NULL) {
             maskVec = psAlloc(sizeof(psVector));
             maskVec->type = mask->type;
-            maskVec->n = *(int*)&maskVec->nalloc = numCols;
+            P_PSVECTOR_SET_NALLOC(maskVec,numCols);
+            maskVec->n = numCols;
         }
         // recycle output to make a proper sized/type output structure
Index: trunk/psLib/src/imageops/psImageStats.c
===================================================================
--- trunk/psLib/src/imageops/psImageStats.c	(revision 5511)
+++ trunk/psLib/src/imageops/psImageStats.c	(revision 5530)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.83 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-10-12 21:02:20 $
+ *  @version $Revision: 1.84 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-11-16 23:06:14 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -64,5 +64,5 @@
         junkData = (psVector *) psAlloc(sizeof(psVector));
         junkData->type = in->type;
-        *(int*)&junkData->nalloc = in->numRows * in->numCols;
+        P_PSVECTOR_SET_NALLOC(junkData,in->numRows * in->numCols);
         junkData->n = junkData->nalloc;
         junkData->data.U8 = in->data.V[0];      // since psImage data is contiguous...
@@ -88,5 +88,5 @@
             junkMask = psAlloc(sizeof(psVector));
             junkMask->type = mask->type;
-            *(int*)&junkMask->nalloc = mask->numRows * mask->numCols;
+            P_PSVECTOR_SET_NALLOC(junkMask,mask->numRows * mask->numCols);
             junkMask->n = junkMask->nalloc;
             junkMask->data.U8 = mask->data.V[0];
@@ -137,5 +137,5 @@
         junkData = (psVector *) psAlloc(sizeof(psVector));
         junkData->type = in->type;
-        *(int*)&junkData->nalloc = in->numRows * in->numCols;
+        P_PSVECTOR_SET_NALLOC(junkData,in->numRows * in->numCols);
         junkData->n = junkData->nalloc;
         junkData->data.U8 = in->data.V[0];      // since psImage data is contiguous...
@@ -161,5 +161,5 @@
             junkMask = psAlloc(sizeof(psVector));
             junkMask->type = mask->type;
-            *(int*)&junkMask->nalloc = mask->numRows * mask->numCols;
+            P_PSVECTOR_SET_NALLOC(junkMask,mask->numRows * mask->numCols);
             junkMask->n = junkMask->nalloc;
             junkMask->data.U8 = mask->data.V[0];
