From: John Darrington Date: Sat, 24 Mar 2012 14:51:40 +0000 (+0100) Subject: Fixed yet another problem caused by use of abs where fabs is appropriate X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8936670ef144f8dc881f87774e6ebeb9902f686a;p=pspp Fixed yet another problem caused by use of abs where fabs is appropriate --- diff --git a/src/language/stats/examine.c b/src/language/stats/examine.c index 069f807c0a..dc53d806c0 100644 --- a/src/language/stats/examine.c +++ b/src/language/stats/examine.c @@ -1534,7 +1534,7 @@ calculate_n (const void *aux1, void *aux2 UNUSED, void *user_data) if (examine->histogram) { /* Sturges Rule */ - double bin_width = abs (es[v].minimum - es[v].maximum) + double bin_width = fabs (es[v].minimum - es[v].maximum) / (1 + log2 (es[v].cc)) ;