projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
q2c: T_RPAREN should be T_LPAREN for matching a left parenthesis.
[pspp]
/
src
/
math
/
tukey-hinges.c
diff --git
a/src/math/tukey-hinges.c
b/src/math/tukey-hinges.c
index ded7a9c6fe4233baa3172899c467e38770023b07..22ab45210c38c98066eb4bb654663114cb496ddd 100644
(file)
--- a/
src/math/tukey-hinges.c
+++ b/
src/math/tukey-hinges.c
@@
-20,6
+20,7
@@
#include <gl/xalloc.h>
#include <libpspp/assertion.h>
#include <gl/xalloc.h>
#include <libpspp/assertion.h>
+#include <libpspp/cast.h>
#include <math.h>
void
#include <math.h>
void
@@
-59,7
+60,8
@@
tukey_hinges_calculate (const struct tukey_hinges *th, double hinge[3])
static void
destroy (struct statistic *s)
{
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);
free (os->k);
free (s);