mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 569821 - js compilation failure on mingw-w64 r=dvander
--HG-- extra : rebase_source : 849d0c26e909917d6bdf7643928978cf59ed61b5
This commit is contained in:
parent
f3043612b6
commit
be2d8d71ce
@ -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)
|
||||
|
@ -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 */
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user