fix incorrect handling of terminal cuts.

This commit is contained in:
Mark Thom
2017-11-02 15:29:31 -06:00
parent e4e9b09175
commit 2abec91360
3 changed files with 7 additions and 6 deletions

View File

@@ -255,7 +255,7 @@ pub fn eval<'a, 'b: 'a>(wam: &'a mut Machine, tl: &'b TopLevel) -> EvalSession<'
&TopLevel::Predicate(ref clauses) => {
let mut cg = CodeGenerator::<DebrayAllocator>::new();
let compiled_pred = cg.compile_predicate(clauses);
let compiled_pred = cg.compile_predicate(clauses);
wam.add_predicate(clauses, compiled_pred)
},
&TopLevel::Fact(ref fact) => {