further allocation fixes.

This commit is contained in:
Mark Thom
2018-03-08 12:51:06 -07:00
parent cb9aafbccf
commit f8389e889e
2 changed files with 2 additions and 2 deletions

View 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
}

View File

@@ -601,7 +601,7 @@ pub fn compile_listing(wam: &mut Machine, src_str: &str) -> EvalSession
let mut worker = TopLevelWorker::new(src_str.as_bytes(), wam.atom_tbl());
let tls = try_eval_session!(worker.parse_batch(&mut op_dir));
for tl in tls {