From: Markus Triska Date: Sat, 3 Sep 2022 19:18:27 +0000 (+0200) Subject: remove redundant error handling, since this case is checked in Prolog X-Git-Tag: v0.9.1^2~15 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=9c2cb144b5ca8d2bad9d9bb1191146d630ff69cb;p=scryer-prolog.git remove redundant error handling, since this case is checked in Prolog This restores f668640e3d9c4ccbd1fc0c6e98e1fb9c2cf1a39c, where this change was already made. It seems it was accidentally overwritten in 0404c3bd949b09d6713d3869e37d30a6b8a77f97. --- diff --git a/src/machine/system_calls.rs b/src/machine/system_calls.rs index 5b52e795..ba78afdc 100644 --- a/src/machine/system_calls.rs +++ b/src/machine/system_calls.rs @@ -6631,17 +6631,6 @@ impl Machine { } else { let mut bytes = vec![]; for c in self.machine_st.value_to_str_like(self.machine_st.registers[1]).unwrap().as_str().chars() { - if c as u32 > 255 { - let stub = functor_stub(atom!("chars_base64"), 3); - - let err = self.machine_st.type_error( - ValidType::Byte, - char_as_cell!(c), - ); - - return Err(self.machine_st.error_form(err, stub)); - } - bytes.push(c as u8); }