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