Bug 679832: Explicitly cast to a pointer-sized integer, when converting between 32-bit ints and void* pointers in nsCheapSets.h. r=bsmedberg

This commit is contained in:
Daniel Holbert 2011-08-18 16:11:55 -07:00
parent be7e0decc6
commit 1c4b998234

View File

@ -175,7 +175,7 @@ private:
/** Set the single integer */
void SetInt(PRInt32 aInt)
{
mValOrHash = (void*)((aInt << 1) | 0x1);
mValOrHash = (void*)(intptr_t)((aInt << 1) | 0x1);
}
/** Create the hash and initialize */
nsresult InitHash(nsInt32HashSet** aSet);