Bug 569821 - js compilation failure on mingw-w64 r=dvander

--HG--
extra : rebase_source : 849d0c26e909917d6bdf7643928978cf59ed61b5
This commit is contained in:
Jacek Caban 2010-06-27 01:27:18 +02:00
parent f3043612b6
commit be2d8d71ce
3 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ JS_DHashStringKey(JSDHashTable *table, const void *key)
JS_PUBLIC_API(JSDHashNumber)
JS_DHashVoidPtrKeyStub(JSDHashTable *table, const void *key)
{
return (JSDHashNumber)(unsigned long)key >> 2;
return (JSDHashNumber)(uintptr_t)key >> 2;
}
JS_PUBLIC_API(JSBool)

View File

@ -291,7 +291,7 @@ GetArgsPrivateNative(JSObject *argsobj)
{
JS_ASSERT(argsobj->isArguments());
uintptr_t p = (uintptr_t) argsobj->getPrivate();
return (ArgsPrivateNative *) (p & 2 ? p & ~2 : NULL);
return p & 2 ? (ArgsPrivateNative *)(p & ~2) : NULL;
}
} /* namespace js */

View File

@ -134,7 +134,7 @@ GetNativeStackBaseImpl()
}
return static_cast<void*>(pTib->StackBase);
# elif defined(_M_X64) && defined(_MSC_VER)
# elif defined(_M_X64)
PNT_TIB64 pTib = reinterpret_cast<PNT_TIB64>(NtCurrentTeb());
return reinterpret_cast<void*>(pTib->StackBase);