From: Ben Pfaff Date: Sat, 1 May 2021 22:54:18 +0000 (-0700) Subject: box-whisker: Use consistent array size for box_whisker_hinges(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=b8de70d264498ee0630ceb935f0617d03448eaac box-whisker: Use consistent array size for box_whisker_hinges(). The prototype said the 'hinges' parameter has 2 elements but the definition said that it has 3. This fixes the prototype. This is harmless because the C standard says these are actually equivalent. Reported by GCC 11. --- diff --git a/src/math/box-whisker.h b/src/math/box-whisker.h index ccafef1fc9..2dd5b5c609 100644 --- a/src/math/box-whisker.h +++ b/src/math/box-whisker.h @@ -57,7 +57,7 @@ struct box_whisker * box_whisker_create (const struct tukey_hinges *, void box_whisker_whiskers (const struct box_whisker *bw, double whiskers[2]); -void box_whisker_hinges (const struct box_whisker *bw, double hinges[2]); +void box_whisker_hinges (const struct box_whisker *bw, double hinges[3]); const struct ll_list * box_whisker_outliers (const struct box_whisker *bw);