diff options
| author | inrustwetrust <inrustwetrust@users.noreply.github.com> | 2015-05-17 10:04:15 +0200 |
|---|---|---|
| committer | inrustwetrust <inrustwetrust@users.noreply.github.com> | 2015-05-17 10:04:15 +0200 |
| commit | d1605deab864d83e5fd5b4e9749d5fd1320fb1fc (patch) | |
| tree | ce1b113332fc22d6d44737a87bd84f514843704d /src/test/codegen | |
| parent | 5e535eae5c4b70879aefc050a5fe0b8137c07eac (diff) | |
| download | rust-d1605deab864d83e5fd5b4e9749d5fd1320fb1fc.tar.gz rust-d1605deab864d83e5fd5b4e9749d5fd1320fb1fc.zip | |
Fix compile-time integer overflow when using ! on unsigned values
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.
Diffstat (limited to 'src/test/codegen')
0 files changed, 0 insertions, 0 deletions
