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: sav-api~32 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=964bc1c0e1b3e490a893583e0598418ce25d5f14 Fix bug #31052: Crash on histograms with only one datum --- diff --git a/src/math/histogram.c b/src/math/histogram.c index 3c88c3858f..0c641b56e1 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;