~mht/cra

71377f32979f2152b84f18f8d6c87a86093634e4 — Martin Hafskjold Thoresen 5 months ago d77988e
Fix bug in `reduce`

Merging is hard :'(
1 files changed, 12 insertions(+), 0 deletions(-)

M src/persistence.rs
M src/persistence.rs => src/persistence.rs +12 -0
@@ 221,6 221,18 @@ fn simplex_reduce(this: &mut Simplex, other: &Simplex) {
        }
    }

    while our_i < our_last {
        buf[buffer_i] = this.faces[our_i];
        our_i += 1;
        buffer_i += 1;
    }

    while their_i < their_last {
        buf[buffer_i] = this.faces[their_i];
        their_i += 1;
        buffer_i += 1;
    }

    if fastpath {
        this.faces.reserve(num_inds);
        this.faces.clear();