]> Repositorios git - scryer-prolog.git/commitdiff
fix typo in try_from_partial_string
authorMark Thom <[email protected]>
Sun, 20 Apr 2025 07:07:55 +0000 (00:07 -0700)
committerMark Thom <[email protected]>
Tue, 8 Jul 2025 05:38:12 +0000 (22:38 -0700)
src/machine/machine_state_impl.rs

index 0358cfd4baf2ea9d1ed76a53d3a5f15d57fa38a7..1d6439d57284d6f7a578ef4544e4152ee9d3d27b 100644 (file)
@@ -1332,7 +1332,7 @@ impl MachineState {
 
         let end_cell = heap_pstr_iter.heap[heap_pstr_iter.focus()];
 
-        if heap_pstr_iter.is_cyclic() || end_cell == empty_list_as_cell!() {
+        if heap_pstr_iter.is_cyclic() || end_cell != empty_list_as_cell!() {
             let err = self.type_error(ValidType::List, a1);
             return Err(self.error_form(err, stub_gen()));
         }