Get rid of warning about implicit 64-to-32 bit conversions.
authorBill Wendling <isanbard@gmail.com>
Thu, 22 Jan 2009 02:10:33 +0000 (02:10 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 22 Jan 2009 02:10:33 +0000 (02:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62741 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/DenseMap.h

index df497d37d76d16e26374626e96ab7082840e9adc..9a66c8b6c1171c35d7e2b8c4768aeba2a3d1c01f 100644 (file)
@@ -58,7 +58,9 @@ template<> struct DenseMapInfo<unsigned> {
 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;