X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmeans.q;h=887cbfd8525d1cabdae9395d5db421cdf8b32c1b;hb=4a73877b4d56caed03d383fb4d38347a9774046f;hp=f367d42c457cb445d01b60e2947242d1985165c4;hpb=4de79b34b329d1da6cdeb145993d3efd911e2967;p=pspp-builds.git diff --git a/src/means.q b/src/means.q index f367d42c..887cbfd8 100644 --- a/src/means.q +++ b/src/means.q @@ -53,7 +53,7 @@ /* TABLES: Variable lists for each dimension. */ int n_dim; /* Number of dimensions. */ -int *nv_dim; /* Number of variables in each dimension. */ +size_t *nv_dim; /* Number of variables in each dimension. */ struct variable ***v_dim; /* Variables in each dimension. */ /* VARIABLES: List of variables. */ @@ -145,7 +145,7 @@ mns_custom_tables (struct cmd_means *cmd) do { - int nvl; + size_t nvl; struct variable **vl; if (!parse_var_set_vars (var_set, &vl, &nvl, @@ -153,8 +153,8 @@ mns_custom_tables (struct cmd_means *cmd) goto lossage; n_dim++; - nv_dim = xrealloc (nv_dim, n_dim * sizeof (int)); - v_dim = xrealloc (v_dim, n_dim * sizeof (struct variable **)); + nv_dim = xnrealloc (nv_dim, n_dim, sizeof *nv_dim); + v_dim = xnrealloc (v_dim, n_dim, sizeof *v_dim); nv_dim[n_dim - 1] = nvl; v_dim[n_dim - 1] = vl;