Index: trunk/psLib/src/math/psStats.c
===================================================================
--- trunk/psLib/src/math/psStats.c	(revision 1322)
+++ trunk/psLib/src/math/psStats.c	(revision 1326)
@@ -1640,4 +1640,9 @@
     }
 
+    if (bounds->type.type != PS_TYPE_F32) {
+        // psAbort(__func__, "psHistogram request a bound which is not type F32");
+        return(NULL);
+    }
+
     // Allocate memory for the new histogram structure.
     newHist = (psHistogram *) psAlloc(sizeof(psHistogram));
