diff options
author | Nate Begeman <natebegeman@mac.com> | 2010-06-17 02:26:59 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2010-06-17 02:26:59 +0000 |
commit | dbafec1f3e6b9c7b33644200ab709817a907229b (patch) | |
tree | a5f9df7a56ce036f6a176f6f0a63b54afb1a7414 /clang/lib/Sema/SemaChecking.cpp | |
parent | 5712c77c89f6941e15398d96317d16302de51a30 (diff) | |
download | bcm5719-llvm-dbafec1f3e6b9c7b33644200ab709817a907229b.tar.gz bcm5719-llvm-dbafec1f3e6b9c7b33644200ab709817a907229b.zip |
Remove last of the bool shifts for MS VC++, patch by dimitry andric
llvm-svn: 106206
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index 6f5d6f8ecaf..3a5afce9202 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -248,25 +248,25 @@ static unsigned RFT(unsigned t, bool shift = false) { switch (t & 0x7) { case 0: // i8 - return shift ? 7 : (8 << quad) - 1; + return shift ? 7 : (8 << (int)quad) - 1; case 1: // i16 - return shift ? 15 : (4 << quad) - 1; + return shift ? 15 : (4 << (int)quad) - 1; case 2: // i32 - return shift ? 31 : (2 << quad) - 1; + return shift ? 31 : (2 << (int)quad) - 1; case 3: // i64 - return shift ? 63 : (1 << quad) - 1; + return shift ? 63 : (1 << (int)quad) - 1; case 4: // f32 assert(!shift && "cannot shift float types!"); - return (2 << quad) - 1; + return (2 << (int)quad) - 1; case 5: // poly8 assert(!shift && "cannot shift polynomial types!"); - return (8 << quad) - 1; + return (8 << (int)quad) - 1; case 6: // poly16 assert(!shift && "cannot shift polynomial types!"); - return (4 << quad) - 1; + return (4 << (int)quad) - 1; case 7: // float16 assert(!shift && "cannot shift float types!"); - return (4 << quad) - 1; + return (4 << (int)quad) - 1; } return 0; } |