Index: trunk/psLib/src/math/psStats.c
===================================================================
--- trunk/psLib/src/math/psStats.c	(revision 1022)
+++ trunk/psLib/src/math/psStats.c	(revision 1026)
@@ -265,4 +265,5 @@
                     binNum = (int) ((in->data.F32[i] - out->bounds->data.F32[0]) /
                                     binSize);
+                    (out->nums->data.S32[binNum])++;
                     // If this is a non-uniform histogram, determining the correct
                     // bin number requires a bit more work.
