struct percentile *mutable = CONST_CAST (struct percentile *, ptl);
const struct order_stats *os = &ptl->parent;
- assert (os->cc == ptl->w);
-
if ( ptl->g1 == SYSMIS)
mutable->g1 = (os->k[0].tc - os->k[0].cc) / os->k[0].c_p1;
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;