summaryrefslogtreecommitdiff
path: root/include/llvm/Support/MathExtras.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-06-21 22:19:00 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-06-21 22:19:00 +0000
commit72a8e6f58cc7fd666f74a03c42cab616ddac7402 (patch)
treefd619d20288c32575e1403cbe76f8995a5ba9e7c /include/llvm/Support/MathExtras.h
parent54cb98578ac2eff4d5986eff7d2b18c66561d683 (diff)
downloadllvm-72a8e6f58cc7fd666f74a03c42cab616ddac7402.tar.gz
llvm-72a8e6f58cc7fd666f74a03c42cab616ddac7402.tar.bz2
llvm-72a8e6f58cc7fd666f74a03c42cab616ddac7402.tar.xz
Whoops, missed a couple more C-style casts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/MathExtras.h')
-rw-r--r--include/llvm/Support/MathExtras.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h
index 7cc5333562..72065ba3d8 100644
--- a/include/llvm/Support/MathExtras.h
+++ b/include/llvm/Support/MathExtras.h
@@ -25,12 +25,12 @@ namespace llvm {
// Hi_32 - This function returns the high 32 bits of a 64 bit value.
inline unsigned Hi_32(uint64_t Value) {
- return (unsigned)(Value >> 32);
+ return static_cast<unsigned>(Value >> 32);
}
// Lo_32 - This function returns the low 32 bits of a 64 bit value.
inline unsigned Lo_32(uint64_t Value) {
- return (unsigned)Value;
+ return static_cast<unsigned>(Value);
}
// is?Type - these functions produce optimal testing for integer data types.