Skip to content

Make first-mismatch walk past the first byte - #16

Merged
yogthos merged 1 commit into
mainfrom
fix/first-mismatch-loop
Nov 19, 2026
Merged

yogthos merged 1 commit into
mainfrom
fix/first-mismatch-loop

Conversation

@yogthos

@yogthos yogthos commented Nov 19, 2026

Copy link
Copy Markdown
Member

The loop never recurred: it returned at index 0 whether or not the bytes there matched, so a mask parity failure always pointed at byte 0. Adds a test for it. Found by jolt-lsp's new loop-without-recur check.

The loop never recurred: it returned at index 0 whether or not the bytes
there matched, so a mask parity failure always pointed at byte 0.
@yogthos
yogthos merged commit 504fcd5 into main Nov 19, 2026
2 checks passed
@yogthos
yogthos deleted the fix/first-mismatch-loop branch November 19, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant