Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Fix an off-by-one. #25

Closed
wants to merge 1 commit into from
Closed

Conversation

rescrv
Copy link

@rescrv rescrv commented Jan 2, 2025

When changing from assertions to exceptions we introduced a change in
behavior.

    assert(data[j] > 0);

became

    if (data[j] < 0 || ...)

This matches the changes before Monday to check <= 0.

When changing from assertions to exceptions we introduced a change in
behavior.

```
    assert(data[j] > 0);
```

became

```
    if (data[j] < 0 || ...)
```

This matches the changes before Monday to check <= 0.
@rescrv rescrv requested a review from HammadB January 2, 2025 16:55
@rescrv rescrv closed this Jan 2, 2025
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