Index: trunk/psLib/src/imageops/psImageStructManip.c
===================================================================
--- trunk/psLib/src/imageops/psImageStructManip.c	(revision 7057)
+++ trunk/psLib/src/imageops/psImageStructManip.c	(revision 7524)
@@ -8,6 +8,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-05-04 00:37:44 $
+ *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-06-12 20:44:04 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -109,11 +109,10 @@
 
     out->data.V = psRealloc(out->data.V,sizeof(psPtr)*numRows); // resize row pointer array
-    *(psMathType*)&out->type = image->type;
-    //    *(psU32*)&out->numCols = numCols;
-    //    *(psU32*)&out->numRows = numRows;
-    *(psS32*)&out->numCols = numCols;
-    *(psS32*)&out->numRows = numRows;
-    *(psS32*)&out->row0 = row0;
-    *(psS32*)&out->col0 = col0;
+    P_PSIMAGE_SET_TYPE(out, image->type);
+    P_PSIMAGE_SET_NUMCOLS(out, numCols);
+    P_PSIMAGE_SET_NUMROWS(out, numRows);
+
+    out->row0 = row0;
+    out->col0 = col0;
     out->parent = image;
     out->children = NULL;
@@ -356,6 +355,6 @@
     }
 
-    *(psU32*)&image->numRows = numRows;
-    *(psU32*)&image->numCols = numCols;
+    P_PSIMAGE_SET_NUMCOLS(image, numCols);
+    P_PSIMAGE_SET_NUMROWS(image, numRows);
 
     // XXX: should I really resize the buffers?
