]> Repositorios git - scryer-prolog.git/commitdiff
remove redundant running count increment in mark_non_callable (#2176) fix_stress_integration_test origin/fix_stress_integration_test
authorMark <[email protected]>
Fri, 24 Nov 2023 05:01:21 +0000 (22:01 -0700)
committerMark <[email protected]>
Fri, 24 Nov 2023 05:01:21 +0000 (22:01 -0700)
src/codegen.rs

index bc6756401f110d104fa55e763a99dcdce0dd0d1c..09722fbd37e4f5a55ba961dab9371ceb9a785d44 100644 (file)
@@ -300,9 +300,10 @@ impl DebrayAllocator {
                         &self.var_data.records[var_num].allocation
                     {
                         self.mark_var_in_non_callable(var_num, term_loc, vr, code);
+                    } else {
+                        self.increment_running_count(var_num);
                     }
 
-                    self.increment_running_count(var_num);
                     RegType::Perm(p)
                 }
             }