]> Repositorios git - scryer-prolog.git/commitdiff
apply suggestion
authorThierry Marianne <[email protected]>
Wed, 4 Mar 2026 12:58:08 +0000 (13:58 +0100)
committerThierry Marianne <[email protected]>
Wed, 4 Mar 2026 13:01:17 +0000 (14:01 +0100)
Signed-off-by: Thierry Marianne <[email protected]>
src/machine/system_calls.rs

index 946380bcb3996bdfd95412c238c8c3bb57c9212f..9b714d01ce5e05b8889ccef705ef6ff6f986f595 100644 (file)
@@ -5131,7 +5131,7 @@ impl Machine {
                         self.machine_st.heap.allocate_cstr(valid_str)
                     ),
                     Err(_) => {
-                        let cells: Vec<_> = bytes
+                        let cells: Vec<_> = cstr.to_bytes()
                             .iter()
                             .map(|&b| fixnum_as_cell!(Fixnum::build_with(b)))
                             .collect();