]> Repositorios git - scryer-prolog.git/commitdiff
build CStr's to vars in write_literal_to_var (#1284)
authorMark Thom <[email protected]>
Wed, 16 Feb 2022 05:22:36 +0000 (22:22 -0700)
committerMark Thom <[email protected]>
Wed, 16 Feb 2022 05:33:29 +0000 (22:33 -0700)
src/machine/machine_state_impl.rs

index 50b5144ca9430b0793a482e4597f14fa52df808c..931f0f114374c05aa742a230bea6194da7bd1bee 100644 (file)
@@ -1973,6 +1973,10 @@ impl MachineState {
                     | HeapCellValueTag::Str => {
                         self.match_partial_string(store_v, cstr_atom, false);
                     }
+                    HeapCellValueTag::AttrVar | HeapCellValueTag::Var => {
+                        let r = store_v.as_var().unwrap();
+                        self.bind(r, lit);
+                    }
                     _ => {
                         self.fail = true;
                     }