From: John Darrington Date: Sun, 19 Sep 2010 16:30:39 +0000 (+0200) Subject: Fix bug #31052: Crash on histograms with only one datum X-Git-Tag: v0.7.6~212 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=964bc1c0e1b3e490a893583e0598418ce25d5f14;p=pspp-builds.git Fix bug #31052: Crash on histograms with only one datum --- diff --git a/src/math/histogram.c b/src/math/histogram.c index 3c88c385..0c641b56 100644 --- a/src/math/histogram.c +++ b/src/math/histogram.c @@ -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;