X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Flanguage%2Fstats%2Fcrosstabs.c;h=465bdcc278fcab0d806164bad81ad91a23dd12bd;hb=d3c96903451307e60d1d4a680ecf58c86cac7eaa;hp=32e1a7736acee63ef52e3d09390f6cb151fe919a;hpb=beb8fa86aba2a20e9fa9884a709c0383cc7a1f06;p=pspp diff --git a/src/language/stats/crosstabs.c b/src/language/stats/crosstabs.c index 32e1a7736a..465bdcc278 100644 --- a/src/language/stats/crosstabs.c +++ b/src/language/stats/crosstabs.c @@ -606,7 +606,7 @@ parse_crosstabs_tables (struct lexer *lexer, struct dataset *ds, } } - int *by_iter = xcalloc (n_by, sizeof *by_iter); + int *by_iter = XCALLOC (n_by, int); proc->pivots = xnrealloc (proc->pivots, proc->n_pivots + nx, sizeof *proc->pivots); for (int i = 0; i < nx; i++) @@ -912,7 +912,7 @@ postcalc (struct crosstabs_proc *proc) if (proc->barchart) { int n_vars = (xt->n_vars > 2 ? 2 : xt->n_vars); - const struct variable **vars = xcalloc (n_vars, sizeof *vars); + const struct variable **vars = XCALLOC (n_vars, const struct variable*); for (size_t i = 0; i < n_vars; i++) vars[i] = xt->vars[i].var; chart_submit (barchart_create (vars, n_vars, _("Count"),