X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fhistogram.c;h=8c809093335d68a1aad52f0cb3f91e0400508864;hb=f5c108becd49d78f4898cab11352291f5689d24e;hp=c50e9980df71d6349263b36817259bafce892b5b;hpb=7eee0554f378481faf447e2d2e940f389d6b05ec;p=pspp-builds.git diff --git a/src/math/histogram.c b/src/math/histogram.c index c50e9980..8c809093 100644 --- a/src/math/histogram.c +++ b/src/math/histogram.c @@ -36,12 +36,12 @@ histogram_create(double bins, double x_min, double x_max) bin_width = chart_rounded_tick((x_max - x_min)/ bins); bin_width_2 = bin_width / 2.0; - - n = ceil( x_max / (bin_width_2) ) ; + + n = ceil( x_max / (bin_width_2) ) ; if ( ! (n % 2 ) ) n++; upper_limit = n * bin_width_2; - n = floor( x_min / (bin_width_2) ) ; + n = floor( x_min / (bin_width_2) ) ; if ( ! (n % 2 ) ) n--; lower_limit = n * bin_width_2;