X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Ftukey-hinges.c;h=22ab45210c38c98066eb4bb654663114cb496ddd;hb=6c091c8123879cb0cf385e167e468eb82ac69d2c;hp=ded7a9c6fe4233baa3172899c467e38770023b07;hpb=b46b794dfb9f0758aafec83f50993d1930894099;p=pspp-builds.git diff --git a/src/math/tukey-hinges.c b/src/math/tukey-hinges.c index ded7a9c6..22ab4521 100644 --- a/src/math/tukey-hinges.c +++ b/src/math/tukey-hinges.c @@ -20,6 +20,7 @@ #include #include +#include #include void @@ -59,7 +60,8 @@ tukey_hinges_calculate (const struct tukey_hinges *th, double hinge[3]) static void destroy (struct statistic *s) { - struct order_stats *os = (struct order_stats *) s; + struct tukey_hinges *th = UP_CAST (s, struct tukey_hinges, parent.parent); + struct order_stats *os = &th->parent; free (os->k); free (s);