aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2010-06-17 02:26:59 +0000
committerNate Begeman <natebegeman@mac.com>2010-06-17 02:26:59 +0000
commitd69ec16b1b03b4a97c571ff14f15769fe13c1e5a (patch)
tree5094c8784121a9bae17fca2eb7d9d5caebeb2220 /lib/Sema/SemaChecking.cpp
parent9c3e84ffe0938cd6a73dd16d9a8b54b498863fef (diff)
Remove last of the bool shifts for MS VC++, patch by dimitry andric
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106206 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r--lib/Sema/SemaChecking.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp
index 6f5d6f8eca..3a5afce920 100644
--- a/lib/Sema/SemaChecking.cpp
+++ b/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;
}