зеркало из https://github.com/mozilla/pjs.git
bug 453892: fix prbool bugs in xpconnect. r=jorendorff
This commit is contained in:
Родитель
83d0e98890
Коммит
493b6e64f3
|
@ -1896,7 +1896,7 @@ public:
|
|||
#ifdef GET_IT
|
||||
#undef GET_IT
|
||||
#endif
|
||||
#define GET_IT(f_) const {return (JSBool)(mClassInfoFlags & nsIClassInfo:: f_ );}
|
||||
#define GET_IT(f_) const {return !!(mClassInfoFlags & nsIClassInfo:: f_ );}
|
||||
|
||||
JSBool ClassIsSingleton() GET_IT(SINGLETON)
|
||||
JSBool ClassIsThreadSafe() GET_IT(THREADSAFE)
|
||||
|
|
|
@ -2892,7 +2892,7 @@ XPCWrappedNative::HandlePossibleNameCaseError(XPCCallContext& ccx,
|
|||
nsCRT::free(newStr);
|
||||
if(newJSStr && (set ?
|
||||
set->FindMember(STRING_TO_JSVAL(newJSStr), &member, &localIface) :
|
||||
(JSBool)NS_PTR_TO_INT32(iface->FindMember(STRING_TO_JSVAL(newJSStr)))))
|
||||
NS_PTR_TO_INT32(iface->FindMember(STRING_TO_JSVAL(newJSStr)))))
|
||||
{
|
||||
// found it!
|
||||
const char* ifaceName = set ?
|
||||
|
|
Загрузка…
Ссылка в новой задаче