Fix bug #31052: Crash on histograms with only one datum 20100920040505/pspp 20100921040508/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 19 Sep 2010 16:30:39 +0000 (18:30 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 19 Sep 2010 16:30:39 +0000 (18:30 +0200)
src/math/histogram.c

index 3c88c3858f61c6b1c2230843a7b9151a47902956..0c641b56e127ddbdf9a180363629101fad746b6c 100644 (file)
@@ -65,7 +65,7 @@ histogram_create (int bins, double min, double max)
 
   int n =  ceil (max / (bin_width_2) ) ;
 
-  assert (max > min);
+  assert (max >= min);
 
   if ( ! (n % 2 ) ) n++;
   upper_limit = n * bin_width_2;