unmark_cell_bits! in push_literal (#2645)

This commit is contained in:
Mark Thom
2024-10-31 22:58:29 -06:00
committed by Mark Thom
parent c0f72704ec
commit 79be0c0625

View File

@@ -62,6 +62,8 @@ pub(crate) struct ArithmeticEvaluator<'a> {
}
fn push_literal(interm: &mut Vec<ArithmeticTerm>, c: HeapCellValue) -> Result<(), ArithmeticError> {
let c = unmark_cell_bits!(c);
read_heap_cell!(c,
(HeapCellValueTag::Fixnum, n) => {
interm.push(ArithmeticTerm::Number(Number::Fixnum(n)))