Index: trunk/psLib/src/math/psStats.c
===================================================================
--- trunk/psLib/src/math/psStats.c	(revision 5517)
+++ trunk/psLib/src/math/psStats.c	(revision 5530)
@@ -17,6 +17,6 @@
 *
 *
-*  @version $Revision: 1.150 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-11-15 20:10:32 $
+*  @version $Revision: 1.151 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-11-16 23:06:19 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -2334,6 +2334,7 @@
     newHist = (psHistogram* ) psAlloc(sizeof(psHistogram));
     psMemSetDeallocator(newHist, (psFreeFunc) histogramFree);
-    newHist->bounds = psVectorAlloc(n + 1, PS_TYPE_F32);
-    *(int *)&newHist->bounds->n = newHist->bounds->nalloc;
+    psVector* newBounds = psVectorAlloc(n + 1, PS_TYPE_F32);
+    newHist->bounds = newBounds;
+    newBounds->n = newHist->bounds->nalloc;
 
     // Calculate the bounds for each bin.
@@ -2343,5 +2344,5 @@
     binSize += FLT_EPSILON;
     for (i = 0; i < n + 1; i++) {
-        newHist->bounds->data.F32[i] = lower + (binSize * (psF32)i);
+        newBounds->data.F32[i] = lower + (binSize * (psF32)i);
     }
 
@@ -2383,8 +2384,9 @@
     newHist = (psHistogram* ) psAlloc(sizeof(psHistogram));
     psMemSetDeallocator(newHist, (psFreeFunc) histogramFree);
-    newHist->bounds = psVectorAlloc(bounds->n, PS_TYPE_F32);
-    *(int *)&newHist->bounds->n = newHist->bounds->nalloc;
+    psVector* newBounds = psVectorAlloc(bounds->n, PS_TYPE_F32);
+    newHist->bounds = newBounds;
+    newBounds->n = newHist->bounds->nalloc;
     for (i = 0; i < bounds->n; i++) {
-        newHist->bounds->data.F32[i] = bounds->data.F32[i];
+        newBounds->data.F32[i] = bounds->data.F32[i];
     }
 
