box-whisker: Use consistent array size for box_whisker_hinges().
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 1 May 2021 22:54:18 +0000 (15:54 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 1 May 2021 22:54:18 +0000 (15:54 -0700)
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.

src/math/box-whisker.h

index ccafef1fc9069a509c064f813374356339a6775a..2dd5b5c609da2b0857396235da676672d32e0ec0 100644 (file)
@@ -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);