codegen tweak.

This commit is contained in:
Mark Thom
2017-02-26 21:44:46 -07:00
parent e3e3f346e5
commit 42374f49dc

View File

@@ -239,7 +239,7 @@ impl<'a> TermMarker<'a> {
fn advance_at_header(&mut self, term: &'a Term) { fn advance_at_header(&mut self, term: &'a Term) {
self.arg_c = 1; self.arg_c = 1;
self.temp_c = max(term.subterms() + 1, self.temp_c = max(term.subterms(),
self.bindings.values() self.bindings.values()
.filter_map(|vr| { .filter_map(|vr| {
match vr { match vr {
@@ -249,7 +249,7 @@ impl<'a> TermMarker<'a> {
_ => None _ => None
} }
}) })
.max().unwrap_or(0)); .max().unwrap_or(0)) + 1;
} }
fn advance(&mut self, term: &'a Term) { fn advance(&mut self, term: &'a Term) {