X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fpercentiles.c;fp=src%2Fmath%2Fpercentiles.c;h=2063dd2c6549a2fe3c5cc06039a4986d0a1f86c8;hb=90a008db8b2f6e5bec903e584eb68e9bb20c061e;hp=ed7b129576f1f7d6b713f46af75ef77aeab3dbf8;hpb=089161cdd3775ea7fbcad894f4957e98ec120de5;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;