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

std: use math overflow helpers instead of builtins #18165

Closed
wants to merge 1 commit into from

Commits on May 4, 2024

  1. std: use math overflow helpers instead of builtins

    This patch replaces all usages of the `@___WithOverflow` builtins where
    the overflow result is discarded with the nicer `math` helpers that
    return `error.Overflow`. This cleaned up a bit of code and hopefully
    impresses the useful `math` functions on more Zig code later.
    sno2 committed May 4, 2024
    Configuration menu
    Copy the full SHA
    ff8eb83 View commit details
    Browse the repository at this point in the history