[llvm-commits] CVS: llvm/include/llvm/Support/MathExtras.h
Jim Laskey
jlaskey at apple.com
Wed Dec 6 14:47:31 PST 2006
Changes in directory llvm/include/llvm/Support:
MathExtras.h updated: 1.35 -> 1.36
---
Log message:
Ignoring the upper 32 bits of a 64 bit constant is not a good thing.
---
Diffs of the changes: (+4 -4)
MathExtras.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/include/llvm/Support/MathExtras.h
diff -u llvm/include/llvm/Support/MathExtras.h:1.35 llvm/include/llvm/Support/MathExtras.h:1.36
--- llvm/include/llvm/Support/MathExtras.h:1.35 Fri Aug 11 18:52:54 2006
+++ llvm/include/llvm/Support/MathExtras.h Wed Dec 6 16:47:14 2006
@@ -35,16 +35,16 @@
}
// 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) {
More information about the llvm-commits
mailing list