Skip to content

Commit 2470fd4

Browse files
authored
Merge pull request #73 from krobelus/issue_72
RRB size table: don't pop conditional on cfg(debug_assertions)
2 parents 417fa4b + 1209e82 commit 2470fd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nodes/rrb.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ impl Size {
9191
let size_table = Ref::make_mut(size_ref);
9292
match side {
9393
Left => {
94-
debug_assert_eq!(value, size_table.pop_front());
94+
let first = size_table.pop_front();
95+
debug_assert_eq!(value, first);
9596
for entry in size_table.iter_mut() {
9697
*entry -= value;
9798
}

0 commit comments

Comments
 (0)