X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Fmann-whitney.c;h=2301cd13c53ed207643e4314408c19fc4cb88171;hb=8197ccafff71f3073c65cc7b53be9e2f34b7cdb2;hp=eced71f9114da17644b05e134503495cfdfb545d;hpb=96994a54e60e9c95b8bba54c2281acf7059b1203;p=pspp diff --git a/src/language/stats/mann-whitney.c b/src/language/stats/mann-whitney.c index eced71f911..2301cd13c5 100644 --- a/src/language/stats/mann-whitney.c +++ b/src/language/stats/mann-whitney.c @@ -94,7 +94,7 @@ mann_whitney_execute (const struct dataset *ds, const struct caseproto *proto = casereader_get_proto (input); size_t rank_idx = caseproto_get_n_widths (proto); - struct mw *mw = xcalloc (nst->n_vars, sizeof *mw); + struct mw *mw = XCALLOC (nst->n_vars, struct mw); for (i = 0; i < nst->n_vars; ++i) { @@ -127,7 +127,7 @@ mann_whitney_execute (const struct dataset *ds, { const union value *group = case_data (c, nst->indep_var); const size_t group_var_width = var_get_width (nst->indep_var); - const double rank = case_data_idx (c, rank_idx)->f; + const double rank = case_num_idx (c, rank_idx); if (value_equal (group, &nst->val1, group_var_width)) {