implement unify_ginteger to address FIXME in skip_max_list_cycle

This commit is contained in:
Mark Thom
2025-09-15 21:58:38 -07:00
parent 24f431e2ca
commit 72cdba82f5
5 changed files with 37 additions and 25 deletions

View File

@@ -150,6 +150,13 @@ pub(crate) trait Unifier: DerefMut<Target = MachineState> {
);
}
fn unify_ginteger(&mut self, n: GInteger, value: HeapCellValue) {
match n {
GInteger::Integer(integer) => self.unify_big_int(integer, value),
GInteger::Fixnum(fixnum) => self.unify_fixnum(fixnum, value),
}
}
fn unify_atom(&mut self, atom: Atom, value: HeapCellValue) {
read_heap_cell!(value,
(HeapCellValueTag::Atom, (name, arity)) => {