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

Fix incorrect range calculation for operator rem #7610

Merged
merged 1 commit into from
Sep 1, 2023

Commits on Aug 31, 2023

  1. Fix incorrect range calculation for operator rem

    acf3116 enhanced the range calculation for `rem`, but at the
    same time introduced a bug. For example:
    
        2 rem X
    
    If the range for `X` was unknown, the compiler would calculate the
    range for the remainder as `{2,2}`, while the correct range is
    `{0,2}`. This commit corrects the range calculation for the remainder
    to ensure that zero is always included in the range.
    bjorng committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    b0926ff View commit details
    Browse the repository at this point in the history