]> Repositorios git - scryer-prolog.git/commitdiff
arith_eval_by_metacall may receive a stack variable
authorMark <[email protected]>
Thu, 13 Jul 2023 19:58:51 +0000 (13:58 -0600)
committerMark <[email protected]>
Thu, 13 Jul 2023 19:58:51 +0000 (13:58 -0600)
src/machine/arithmetic_ops.rs

index f5aa982f5839995523eebb421603565f246c7279..8eae327dac93a75342db0d1141a58993ee59a825 100644 (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()));
                      }