]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #25527 - inrustwetrust:const-not-overflow, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 17 May 2015 23:53:41 +0000 (23:53 +0000)
committerbors <bors@rust-lang.org>
Sun, 17 May 2015 23:53:41 +0000 (23:53 +0000)
Fixes #23968.
Since the values are stored in a u64 internally, we need to be mask away the
high bits after applying the ! operator. Otherwise, these bits will be set to
one, causing overflow.


Trivial merge