018 sweep cursor index carries no floor

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

34

Expected output

34

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (cells, size: 4, source: v: 0[i64])
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: cells[1].v: 10)
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: cells[2].v: 20)
flow ~sweep click a branch to expand · @labels scroll to their anchor
sweep (cells)
flow ~capture click a branch to expand · @labels scroll to their anchor
capture (source: sum: 0[i64])

Test Configuration

MUST_RUN LANGUAGES: zig

Post-validation Script: