Use intptr_t instead of unsigned here, which is more appropriate
[oota-llvm.git] / include / llvm / ADT / PointerIntPair.h
index d5c89b890a1727c0e7ea4f1d9b15bd5ae1c390ad..9d34b44a530e75cad1b550237a30034f7ccf4212 100644 (file)
@@ -53,7 +53,7 @@ public:
   }
   
   void setInt(IntType Int) {
-    assert(unsigned(Int) < (1 << IntBits) && "Integer too large for field");
+    assert(intptr_t(Int) < (1 << IntBits) && "Integer too large for field");
     Value = reinterpret_cast<intptr_t>(getPointer()) | (intptr_t)Int;
   }