]> Repositorios git - scryer-prolog.git/commitdiff
further debray fix.
authorMark Thom <[email protected]>
Fri, 9 Mar 2018 05:54:36 +0000 (22:54 -0700)
committerMark Thom <[email protected]>
Fri, 9 Mar 2018 05:54:36 +0000 (22:54 -0700)
src/prolog/debray_allocator.rs

index 05892d8ccc7d1d5a6a7cd368f3ec523062e93bdd..b53a5878e2daa887e7d72cbbc322eee369c5c4f1 100644 (file)
@@ -33,7 +33,7 @@ impl DebrayAllocator {
     }
 
     fn is_in_use(&self, r: usize) -> bool {
-        let in_use_range = r < self.arity && r >= self.arg_c;
+        let in_use_range = r <= self.arity && r >= self.arg_c;
         self.in_use.contains(&r) || in_use_range
     }