]> Repositorios git - scryer-prolog.git/commitdiff
FIXED: library(sgml): load_html/3 and load_xml/3 now both work again.
authorMarkus Triska <[email protected]>
Tue, 22 Feb 2022 22:49:01 +0000 (23:49 +0100)
committerMarkus Triska <[email protected]>
Tue, 22 Feb 2022 23:03:27 +0000 (00:03 +0100)
This addresses #1249.

src/machine/system_calls.rs

index 314a35d4c7e4de02c182759412b308b30861d5e5..becc644e8107b89dcf9bb4cdd687e40317377235 100644 (file)
@@ -6003,7 +6003,7 @@ impl Machine {
 
             let tag = self.machine_st.atom_tbl.build_with(node.tag_name().name());
 
-            let result = heap_loc_as_cell!(self.machine_st.heap.len());
+            let result = str_loc_as_cell!(self.machine_st.heap.len());
 
             self.machine_st.heap.push(atom_as_cell!(atom!("element"), 3));
             self.machine_st.heap.push(atom_as_cell!(tag));
@@ -6056,7 +6056,7 @@ impl Machine {
                 );
 
                 let tag = self.machine_st.atom_tbl.build_with(name);
-                let result = heap_loc_as_cell!(self.machine_st.heap.len());
+                let result = str_loc_as_cell!(self.machine_st.heap.len());
 
                 self.machine_st.heap.push(atom_as_cell!(atom!("element"), 3));
                 self.machine_st.heap.push(atom_as_cell!(tag));