X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fpercentiles.c;h=2063dd2c6549a2fe3c5cc06039a4986d0a1f86c8;hb=59c87092f400493fbc95ee72e5cd8bf02468ce01;hp=ed7b129576f1f7d6b713f46af75ef77aeab3dbf8;hpb=fe8dc2171009e90d2335f159d05f7e6660e24780;p=pspp diff --git a/src/math/percentiles.c b/src/math/percentiles.c index ed7b129576..2063dd2c65 100644 --- a/src/math/percentiles.c +++ b/src/math/percentiles.c @@ -176,7 +176,7 @@ percentile_create (double p, double W) ptl->w = W; os->n_k = 2; - os->k = xcalloc (sizeof (*os->k), 2); + os->k = xcalloc (2, sizeof (*os->k)); os->k[0].tc = W * p; os->k[1].tc = (W + 1.0) * p;