Fix incorrectly ordered arguments to xcalloc
[pspp-builds.git] / src / math / trimmed-mean.c
index 5e48689626817ddf59ad46363a17e1d0e763084d..b985125295f9754d1ffec7c6b751c02e08425516 100644 (file)
@@ -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);