From 964bc1c0e1b3e490a893583e0598418ce25d5f14 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 19 Sep 2010 18:30:39 +0200 Subject: [PATCH] Fix bug #31052: Crash on histograms with only one datum --- src/math/histogram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2