X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Ftrimmed-mean.c;h=b985125295f9754d1ffec7c6b751c02e08425516;hb=5aeb37ea9cd9d86fb050a7162cd5fd8ad7ca0abf;hp=5e48689626817ddf59ad46363a17e1d0e763084d;hpb=81579d9e9f994fb2908f50af41c3eb033d216e58;p=pspp diff --git a/src/math/trimmed-mean.c b/src/math/trimmed-mean.c index 5e48689626..b985125295 100644 --- a/src/math/trimmed-mean.c +++ b/src/math/trimmed-mean.c @@ -57,7 +57,7 @@ trimmed_mean_create (double W, double tail) struct statistic *stat = &os->parent; os->n_k = 2; - os->k = xcalloc (sizeof (*os->k), 2); + os->k = xcalloc (2, sizeof (*os->k)); assert (tail >= 0); assert (tail <= 1);