]> Repositorios git - scryer-prolog.git/commitdiff
read the cell written to by mark_var when needed in compile_is (#1846)
authorMark <[email protected]>
Thu, 29 Jun 2023 18:58:15 +0000 (12:58 -0600)
committerMark <[email protected]>
Thu, 29 Jun 2023 18:58:15 +0000 (12:58 -0600)
src/arithmetic.rs

index 515dba4b239bf27fe2d977404071cd11328b4b3f..7f15a7f1159754e6a57f8b39d957e45ad3605d60 100644 (file)
@@ -335,11 +335,11 @@ impl<'a> ArithmeticEvaluator<'a> {
                                 term_loc,
                                 &mut code,
                             );
+                            cell.get().norm()
                         } else {
                             self.marker.increment_running_count(var_num);
+                            r
                         }
-
-                        r
                     } else {
                         self.marker.increment_running_count(var_num);
                         cell.get().norm()