case: Introduce new functions for numbers and substrings in cases.
[pspp] / src / language / stats / autorecode.c
index 005ba7622a818602c477b90682c9245d545bf56e..6481a263268f84fc43fe8cb000e23230a51038b5 100644 (file)
@@ -568,7 +568,7 @@ autorecode_trns_proc (void *arc_, struct ccase **c,
       size_t hash = value_hash (value, width, 0);
       const struct arc_item *item = find_arc_item (spec->items, value, width,
                                                    hash);
-      case_data_rw (*c, spec->dst)->f = item ? item->to : SYSMIS;
+      *case_num_rw (*c, spec->dst) = item ? item->to : SYSMIS;
     }
 
   return TRNS_CONTINUE;