From: Jason H Stover Date: Thu, 4 Feb 2010 23:01:45 +0000 (-0500) Subject: use sizeof double to allocate means X-Git-Tag: sid-i386-build156^0 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3ec9f11b5ebe965d2233870ced536a75709451d;p=pspp-builds.git use sizeof double to allocate means --- diff --git a/src/language/stats/regression.q b/src/language/stats/regression.q index cb126d09..4841c66e 100644 --- a/src/language/stats/regression.q +++ b/src/language/stats/regression.q @@ -905,7 +905,7 @@ run_regression (struct casereader *input, struct cmd_regression *cmd, dict_get_vars (dict, &v_variables, &n_variables, 0); } vars = xnmalloc (n_variables, sizeof (*vars)); - means = xnmalloc (n_variables, sizeof (*vars)); + means = xnmalloc (n_variables, sizeof (*means)); cov = covariance_1pass_create (n_variables, v_variables, dict_get_weight (dict), MV_ANY);