From: bors Date: Sun, 17 May 2015 23:53:41 +0000 (+0000) Subject: Auto merge of #25527 - inrustwetrust:const-not-overflow, r=alexcrichton X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=0cc99f9cc9b59518f618a2c3f5011000e60f922e;p=rust.git Auto merge of #25527 - inrustwetrust:const-not-overflow, r=alexcrichton 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. --- 0cc99f9cc9b59518f618a2c3f5011000e60f922e