Ignoring the upper 32 bits of a 64 bit constant is not a good thing.
authorJim Laskey <jlaskey@mac.com>
Wed, 6 Dec 2006 22:47:14 +0000 (22:47 +0000)
committerJim Laskey <jlaskey@mac.com>
Wed, 6 Dec 2006 22:47:14 +0000 (22:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32294 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/MathExtras.h

index e6a544dc77ab192f0241570f190197be2ec02766..76447b21ebfd837e848e2507330d4879c911a810 100644 (file)
@@ -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) {