case: Introduce new functions for numbers and substrings in cases.
[pspp] / src / language / stats / friedman.c
index 5d476fab2c080e88d234f8f9e865334d478cf330..55e42489f4e3a420790c7184c432b1968d5f17af 100644 (file)
@@ -123,7 +123,7 @@ friedman_execute (const struct dataset *ds,
       double prev_x = SYSMIS;
       int run_length = 0;
 
-      const double w = weight ? case_data (c, weight)->f: 1.0;
+      const double w = weight ? case_num (c, weight) : 1.0;
 
       fr.cc += w;