aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/MathExtras.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h
index e6a544dc77..76447b21eb 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) {