about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorinrustwetrust <inrustwetrust@users.noreply.github.com>2015-05-17 10:04:15 +0200
committerinrustwetrust <inrustwetrust@users.noreply.github.com>2015-05-17 10:04:15 +0200
commitd1605deab864d83e5fd5b4e9749d5fd1320fb1fc (patch)
treece1b113332fc22d6d44737a87bd84f514843704d /src/test/codegen/stack-alloc-string-slice.rs
parent5e535eae5c4b70879aefc050a5fe0b8137c07eac (diff)
downloadrust-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/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions