diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2006-01-14 02:17:20 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2006-01-14 02:17:20 +0000 |
commit | b69c190c26da6d83391a4956ed2dfc0fe45b5bfa (patch) | |
tree | 571417c31e3a62e86b3af82080bd0c8b96407e1f /include/llvm/Support/MathExtras.h | |
parent | 2f86c223d3bc4976eb5171a55df3e0eac4247a2e (diff) |
Fix generous source of VC++ truncation warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/MathExtras.h')
-rw-r--r-- | include/llvm/Support/MathExtras.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index 1935f77b49..65f6ed3f75 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/Support/MathExtras.h @@ -100,8 +100,8 @@ inline unsigned ByteSwap_32(unsigned Value) { // ByteSwap_64 - This function returns a byte-swapped representation of the // 64-bit argument, Value. inline uint64_t ByteSwap_64(uint64_t Value) { - uint64_t Hi = ByteSwap_32(Value); - uint64_t Lo = ByteSwap_32(Value >> 32); + uint64_t Hi = ByteSwap_32(unsigned(Value)); + uint64_t Lo = ByteSwap_32(unsigned(Value >> 32)); return (Hi << 32) | Lo; } |