[llvm-branch-commits] [llvm-branch] r70149 - /llvm/branches/Apple/Dib/include/llvm/ADT/PointerIntPair.h

Bill Wendling isanbard at gmail.com
Sun Apr 26 12:48:13 PDT 2009


Author: void
Date: Sun Apr 26 14:48:13 2009
New Revision: 70149

URL: http://llvm.org/viewvc/llvm-project?rev=70149&view=rev
Log:
Use uint64_t instead of unsigned.

Modified:
    llvm/branches/Apple/Dib/include/llvm/ADT/PointerIntPair.h

Modified: llvm/branches/Apple/Dib/include/llvm/ADT/PointerIntPair.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/include/llvm/ADT/PointerIntPair.h?rev=70149&r1=70148&r2=70149&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/include/llvm/ADT/PointerIntPair.h (original)
+++ llvm/branches/Apple/Dib/include/llvm/ADT/PointerIntPair.h Sun Apr 26 14:48:13 2009
@@ -43,17 +43,17 @@
   enum {
     /// PointerBitMask - The bits that come from the pointer.
     PointerBitMask =
-      ~(unsigned)(((intptr_t)1 << PtrTraits::NumLowBitsAvailable)-1),
+      ~(uint64_t)(((intptr_t)1 << PtrTraits::NumLowBitsAvailable)-1),
 
     /// IntShift - The number of low bits that we reserve for other uses, and
     /// keep zero.
-    IntShift = (unsigned)PtrTraits::NumLowBitsAvailable-IntBits,
+    IntShift = (uint64_t)PtrTraits::NumLowBitsAvailable-IntBits,
     
     /// IntMask - This is the unshifted mask for valid bits of the int type.
-    IntMask = (unsigned)(((intptr_t)1 << IntBits)-1),
+    IntMask = (uint64_t)(((intptr_t)1 << IntBits)-1),
     
     // ShiftedIntMask - This is the bits for the integer shifted in place.
-    ShiftedIntMask = (unsigned)(IntMask << IntShift)
+    ShiftedIntMask = (uint64_t)(IntMask << IntShift)
   };
 public:
   PointerIntPair() : Value(0) {}





More information about the llvm-branch-commits mailing list