arith_eval_by_metacall may receive a stack variable

This commit is contained in:
Mark
2023-07-13 13:58:51 -06:00
parent 4163cb038d
commit a9cb826bf3

View File

@@ -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()));
}