case: Introduce new functions for numbers and substrings in cases.
[pspp] / src / language / stats / kruskal-wallis.c
index 061857d30e600daa46946bc7ca121324fe7ec805..62c49e48482cd05b5b0d09d7e0f5f231b4a6a4c8 100644 (file)
@@ -192,7 +192,7 @@ kruskal_wallis_execute (const struct dataset *ds,
                           value_hash (&rank->group, group_var_width, 0));
            }
 
-         rank->sum_of_ranks += case_data_idx (c, rank_idx)->f;
+         rank->sum_of_ranks += case_num_idx (c, rank_idx);
          rank->n += dict_get_case_weight (dict, c, &warn);
 
          /* If this assertion fires, then either the data wasn't sorted or some other