[llvm-commits] [llvm] r62741 - /llvm/trunk/include/llvm/ADT/DenseMap.h
Bill Wendling
isanbard at gmail.com
Wed Jan 21 18:10:33 PST 2009
Author: void
Date: Wed Jan 21 20:10:33 2009
New Revision: 62741
URL: http://llvm.org/viewvc/llvm-project?rev=62741&view=rev
Log:
Get rid of warning about implicit 64-to-32 bit conversions.
Modified:
llvm/trunk/include/llvm/ADT/DenseMap.h
Modified: llvm/trunk/include/llvm/ADT/DenseMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/DenseMap.h?rev=62741&r1=62740&r2=62741&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/DenseMap.h (original)
+++ llvm/trunk/include/llvm/ADT/DenseMap.h Wed Jan 21 20:10:33 2009
@@ -58,7 +58,9 @@
template<> struct DenseMapInfo<unsigned long> {
static inline unsigned long getEmptyKey() { return ~0L; }
static inline unsigned long getTombstoneKey() { return ~0L - 1L; }
- static unsigned getHashValue(const unsigned long& Val) { return Val * 37L; }
+ static unsigned getHashValue(const unsigned long& Val) {
+ return (unsigned)(Val * 37L);
+ }
static bool isPod() { return true; }
static bool isEqual(const unsigned long& LHS, const unsigned long& RHS) {
return LHS == RHS;
More information about the llvm-commits
mailing list