X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fpercentiles.c;h=c76bb492ba767a90ffa2c03c8d35bf8a7d532ab6;hb=f994fab43f6aeb00cfb40d24c4c4c6ed518a05b9;hp=2bde9d6f979bb5c410557bf904e06c2522702317;hpb=12895f38b01137ae0b14f07d26e6f0928b735bdf;p=pspp-builds.git diff --git a/src/math/percentiles.c b/src/math/percentiles.c index 2bde9d6f..c76bb492 100644 --- a/src/math/percentiles.c +++ b/src/math/percentiles.c @@ -45,7 +45,7 @@ const char *const ptile_alg_desc[] = { double percentile_calculate (const struct percentile *ptl, enum pc_alg alg) { - struct percentile *mutable = (struct percentile *) ptl; + struct percentile *mutable = CONST_CAST (struct percentile *, ptl); const struct order_stats *os = &ptl->parent; assert (os->cc == ptl->w);