remove redundant error handling, since this case is checked in Prolog
This restoresf668640e3d, where this change was already made. It seems it was accidentally overwritten in0404c3bd94.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user