projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix memory leak in MATCH FILES.
[pspp-builds.git]
/
src
/
math
/
factor-stats.c
diff --git
a/src/math/factor-stats.c
b/src/math/factor-stats.c
index 8b6f4e8436357c7ff38665cb538951087e162668..fde6abe1d99e01c3c6b5af19fdc9322256466260 100644
(file)
--- a/
src/math/factor-stats.c
+++ b/
src/math/factor-stats.c
@@
-20,10
+20,10
@@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
#include <config.h>
#include "factor-stats.h"
#include <config.h>
#include "factor-stats.h"
-#include
"value.h"
-#include
"hash.h"
-#include
"array.h"
-#include
"alloc.h"
+#include
<data/value.h>
+#include
<libpspp/hash.h>
+#include
<libpspp/array.h>
+#include
<libpspp/alloc.h>
#include "moments.h"
#include "percentiles.h"
#include "moments.h"
#include "percentiles.h"
@@
-185,9
+185,11
@@
metrics_postcalc(struct metrics *m)
/* Calculate the percentiles */
/* Calculate the percentiles */
- ptiles(m->ptile_hash, m->wvp, m->n_data, m->n, m->ptile_alg);
+ ptiles (m->ptile_hash, (const struct weighted_value **) m->wvp,
+ m->n_data, m->n, m->ptile_alg);
- tukey_hinges(m->wvp, m->n_data, m->n, m->hinge);
+ tukey_hinges ((const struct weighted_value **) m->wvp,
+ m->n_data, m->n, m->hinge);
/* Special case here */
if ( k1 + 1 == k2 )
/* Special case here */
if ( k1 + 1 == k2 )