From a9cb826bf339f4f5c3362c6fa3ad3af13f16c260 Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 13 Jul 2023 13:58:51 -0600 Subject: [PATCH] arith_eval_by_metacall may receive a stack variable --- src/machine/arithmetic_ops.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine/arithmetic_ops.rs b/src/machine/arithmetic_ops.rs index f5aa982f..8eae327d 100644 --- a/src/machine/arithmetic_ops.rs +++ b/src/machine/arithmetic_ops.rs @@ -1123,7 +1123,7 @@ impl MachineState { HeapCellValueTag::PStrLoc) => { (atom!("."), 2) } - (HeapCellValueTag::AttrVar | HeapCellValueTag::Var) => { + (HeapCellValueTag::AttrVar | HeapCellValueTag::Var | HeapCellValueTag::StackVar) => { let err = self.instantiation_error(); return Err(self.error_form(err, stub_gen())); } -- 2.54.0