Bug 472609 - Support Win64 (LLP64 model) for xpcom/ds. r=benjamin
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Fri, 06 Mar 2009 22:37:13 +0900
changeset 25808 f939168ee9f401069a8b5a515666d5e1c3c936e0
parent 25807 38d5bc58cf463bf1682b78e75c86ab7a7d997366
child 25809 37207402f983181470d3996529cdf014e624b2c2
push idunknown
push userunknown
push dateunknown
reviewersbenjamin
bugs472609
milestone1.9.2a1pre
Bug 472609 - Support Win64 (LLP64 model) for xpcom/ds. r=benjamin
xpcom/ds/nsCheapSets.h
--- a/xpcom/ds/nsCheapSets.h
+++ b/xpcom/ds/nsCheapSets.h
@@ -77,17 +77,17 @@ public:
     }
 
     // Check whether the value is equal to the string if the string is there
     nsAString* str = GetStr();
     return str && str->Equals(aVal);
   }
 
 private:
-  typedef unsigned long PtrBits;
+  typedef PRUword PtrBits;
 
   /** Get the hash pointer (or null if we're not a hash) */
   nsStringHashSet* GetHash()
   {
     return (PtrBits(mValOrHash) & 0x1) ? nsnull : (nsStringHashSet*)mValOrHash;
   }
   /** Find out whether it is a string */
   nsAString* GetStr()
@@ -150,17 +150,17 @@ public:
     }
     if (IsInt()) {
       return GetInt() == aVal;
     }
     return PR_FALSE;
   }
 
 private:
-  typedef unsigned long PtrBits;
+  typedef PRUword PtrBits;
 
   /** Get the hash pointer (or null if we're not a hash) */
   nsInt32HashSet* GetHash()
   {
     return PtrBits(mValOrHash) & 0x1 ? nsnull : (nsInt32HashSet*)mValOrHash;
   }
   /** Find out whether it is an integer */
   PRBool IsInt()