summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/incremental.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/incremental.rs b/src/incremental.rs
index 3f853bf..3f55216 100644
--- a/src/incremental.rs
+++ b/src/incremental.rs
@@ -160,8 +160,6 @@ fn smi_step<T: PartialOrd>(
};
if let Some(cand) = to_compare {
- *count += 1;
-
let acand = a.get(cand).unwrap();
let a_assoc = a.get(assoc).unwrap();
@@ -179,6 +177,8 @@ fn smi_step<T: PartialOrd>(
continue;
}
+ *count += 1;
+
add_edge(graph.borrow_mut(), cand, assoc);
match acand.partial_cmp(a_assoc) {