case: Introduce new functions for numbers and substrings in cases.
[pspp] / src / language / stats / cochran.c
index 4b881f393c7318e06c41501bc4038d74b6992082..935d612b5e94e7e7d18b9572ce7a2814fb09c1f0 100644 (file)
@@ -80,7 +80,7 @@ cochran_execute (const struct dataset *ds,
   for (; (c = casereader_read (input)); case_unref (c))
     {
       double case_hits = 0.0;
-      const double w = weight ? case_data (c, weight)->f: 1.0;
+      const double w = weight ? case_num (c, weight) : 1.0;
       for (v = 0; v < ct->n_vars; ++v)
        {
          const struct variable *var = ct->vars[v];