variable revision

This commit is contained in:
Mark Thom
2024-07-31 14:04:55 -06:00
committed by Mark Thom
parent 1ef681bd21
commit f7bbdfe73a
22 changed files with 738 additions and 894 deletions

View File

@@ -1156,7 +1156,7 @@ impl MachineState {
) -> Result<Number, MachineStub> {
let stub_gen = || functor_stub(atom!("is"), 2);
let root_loc = if value.is_ref() {
let root_loc = if value.is_ref() && !value.is_stack_var() {
value.get_value() as usize
} else {
let type_error = self.type_error(ValidType::Evaluable, value);