case: Introduce new functions for numbers and substrings in cases.
[pspp] / src / language / data-io / matrix-reader.c
index eac86744af9a5685e9715ad2625096be2418411a..a7db15e029d8b9feac1d9111a8297edb87c6540b 100644 (file)
@@ -182,7 +182,7 @@ matrix_fill_row (gsl_matrix **matrix,
   for (col = 0; col < n_vars; ++col)
     {
       const struct variable *cv = vars [col];
-      double x = case_data (c, cv)->f;
+      double x = case_num (c, cv);
       assert (col  < (*matrix)->size2);
       assert (mrow < (*matrix)->size1);
       gsl_matrix_set (*matrix, mrow, col, x);