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
This commit is contained in:
Jim Laskey 2006-12-06 22:47:14 +00:00
parent 94c96cc519
commit a091fa8619

View 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) {