diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2007-03-05 00:00:42 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2007-03-05 00:00:42 +0000 |
commit | ca5183d445954a9b2a570d6bbba1bc2b00ad6442 (patch) | |
tree | 2fe70b0a35fe2569c8d6434e9769bc6e8bd58204 /include/llvm/Support/MathExtras.h | |
parent | f298fd0428e3e26fda13d24bb7295c416a9b8452 (diff) | |
download | external_llvm-ca5183d445954a9b2a570d6bbba1bc2b00ad6442.zip external_llvm-ca5183d445954a9b2a570d6bbba1bc2b00ad6442.tar.gz external_llvm-ca5183d445954a9b2a570d6bbba1bc2b00ad6442.tar.bz2 |
Unbreak VC++ build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34917 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/MathExtras.h')
-rw-r--r-- | include/llvm/Support/MathExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index f0bc91f..4183343 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/Support/MathExtras.h @@ -255,7 +255,7 @@ inline unsigned CountPopulation_64(uint64_t Value) { uint64_t v = Value - ((Value >> 1) & 0x5555555555555555ULL); v = (v & 0x3333333333333333ULL) + ((v >> 2) & 0x3333333333333333ULL); v = (v + (v >> 4)) & 0x0F0F0F0F0F0F0F0FULL; - return (uint64_t)(v * 0x0101010101010101ULL) >> 56; + return unsigned((uint64_t)(v * 0x0101010101010101ULL) >> 56); #endif } |