Fix clipboard export of non-ascii strings.
[pspp-builds.git] / src / math / trimmed-mean.c
index fa205017bca35a046f01c2156a0e7fe9b3dabc89..da3d4240e5b232533de6c5c31073b53adda49f48 100644 (file)
@@ -77,6 +77,8 @@ trimmed_mean_calculate (const struct trimmed_mean *tm)
 {
   const struct order_stats *os = (const struct order_stats *) tm;
 
+  assert (os->cc == tm->w);
+
   return
     (
      (os->k[0].cc_p1 - os->k[0].tc) * os->k[0].y_p1