diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-12-06 22:47:14 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-12-06 22:47:14 +0000 |
commit | a091fa861987b603669d730cce7365189744ab0f (patch) | |
tree | cda60d53ba8a320d93544af017b457d869f7e7fe /include/llvm | |
parent | 94c96cc5197f527a8cb9f953be3a2e8f2f5aa9e3 (diff) | |
download | external_llvm-a091fa861987b603669d730cce7365189744ab0f.zip external_llvm-a091fa861987b603669d730cce7365189744ab0f.tar.gz external_llvm-a091fa861987b603669d730cce7365189744ab0f.tar.bz2 |
Ignoring the upper 32 bits of a 64 bit constant is not a good thing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32294 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Support/MathExtras.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index e6a544d..76447b2 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/Support/MathExtras.h @@ -35,16 +35,16 @@ inline unsigned Lo_32(uint64_t Value) { } // is?Type - these functions produce optimal testing for integer data types. -inline bool isInt8 (int Value) { +inline bool isInt8 (int64_t Value) { return static_cast<signed char>(Value) == Value; } -inline bool isUInt8 (int Value) { +inline bool isUInt8 (int64_t Value) { return static_cast<unsigned char>(Value) == Value; } -inline bool isInt16 (int Value) { +inline bool isInt16 (int64_t Value) { return static_cast<signed short>(Value) == Value; } -inline bool isUInt16(int Value) { +inline bool isUInt16(int64_t Value) { return static_cast<unsigned short>(Value) == Value; } inline bool isInt32 (int64_t Value) { |