Bug 678036 - Fix the build with clang in c++0x mode. The first field of a nanojit::CallInfo is a uintptr_t, fix the cast. r=cdleary

This commit is contained in:
Rafael Ávila de Espíndola 2011-08-11 15:39:13 +02:00
parent 72dee98c7b
commit 875d19b690

View File

@ -289,7 +289,7 @@ struct ClosureVarInfo;
#define _JS_DEFINE_CALLINFO(linkage, name, crtype, cargtypes, argtypes, isPure, storeAccSet) \
_JS_TN_LINKAGE(linkage, crtype) FASTCALL name cargtypes; \
_JS_CI_LINKAGE(linkage) const nanojit::CallInfo _JS_CALLINFO(name) = \
{ (intptr_t) &name, argtypes, nanojit::ABI_FASTCALL, isPure, storeAccSet _JS_CI_NAME(name) }; \
{ (uintptr_t) &name, argtypes, nanojit::ABI_FASTCALL, isPure, storeAccSet _JS_CI_NAME(name) }; \
JS_STATIC_ASSERT_IF(isPure, (storeAccSet) == nanojit::ACCSET_NONE);
#endif