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 overflow checking in unsigned pow() #34942

Merged
merged 2 commits into from
Sep 20, 2016
Merged

Commits on Aug 7, 2016

  1. Fix overflow checking in unsigned pow()

    The pow() method for unsigned integers produced 0 instead of trapping
    overflow for certain inputs. Calls such as 2u32.pow(1024) produced 0
    when they should trap an overflow. This also adds tests for the
    correctly handling overflow in unsigned pow().
    
    For issue number rust-lang#34913
    porglezomp committed Aug 7, 2016
    Configuration menu
    Copy the full SHA
    9926b33 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b8c4e9c View commit details
    Browse the repository at this point in the history