[llvm-commits] CVS: llvm/include/llvm/Support/MathExtras.h
Jeff Cohen
jeffc at jolt-lang.org
Fri Jan 13 18:17:31 PST 2006
Changes in directory llvm/include/llvm/Support:
MathExtras.h updated: 1.28 -> 1.29
---
Log message:
Fix generous source of VC++ truncation warnings.
---
Diffs of the changes: (+2 -2)
MathExtras.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/Support/MathExtras.h
diff -u llvm/include/llvm/Support/MathExtras.h:1.28 llvm/include/llvm/Support/MathExtras.h:1.29
--- llvm/include/llvm/Support/MathExtras.h:1.28 Fri Jan 13 19:25:24 2006
+++ llvm/include/llvm/Support/MathExtras.h Fri Jan 13 20:17:20 2006
@@ -100,8 +100,8 @@
// ByteSwap_64 - This function returns a byte-swapped representation of the
// 64-bit argument, Value.
inline uint64_t ByteSwap_64(uint64_t Value) {
- uint64_t Hi = ByteSwap_32(Value);
- uint64_t Lo = ByteSwap_32(Value >> 32);
+ uint64_t Hi = ByteSwap_32(unsigned(Value));
+ uint64_t Lo = ByteSwap_32(unsigned(Value >> 32));
return (Hi << 32) | Lo;
}
More information about the llvm-commits
mailing list