assert (!cat->cat_to_iact);
double weight;
- weight = cat->wv ? case_data (c, cat->wv)->f : 1.0;
+ weight = cat->wv ? case_num (c, cat->wv) : 1.0;
weight = var_force_valid_weight (cat->wv, weight, NULL);
/* Update the frequency table for each variable. */
return;
}
- struct value_node **nodes = xcalloc (sizeof *nodes, n_vals);
+ struct value_node **nodes = XCALLOC (n_vals, struct value_node *);
int x = 0;
struct value_node *valnd;
HMAP_FOR_EACH (valnd, struct value_node, node, &vn->valmap)