mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 551088 fix xpconnect signed warnings
r=dbradley --HG-- extra : rebase_source : 01a2089bc2a3f3a402acaab68b8b9a6bce92bb09
This commit is contained in:
parent
36ccbc2070
commit
643a7b230b
@ -2109,7 +2109,7 @@ XPCConvert::JSArray2Native(XPCCallContext& ccx, void** d, jsval s,
|
||||
#define POPULATE(_mode, _t) \
|
||||
PR_BEGIN_MACRO \
|
||||
cleanupMode = _mode; \
|
||||
if (capacity > ~(size_t)0 / sizeof(_t) || \
|
||||
if (capacity > PR_UINT32_MAX / sizeof(_t) || \
|
||||
nsnull == (array = nsMemory::Alloc(capacity * sizeof(_t)))) \
|
||||
{ \
|
||||
if(pErr) \
|
||||
|
@ -769,7 +769,7 @@ JSBool XPCJSRuntime::GCCallback(JSContext *cx, JSGCStatus status)
|
||||
}
|
||||
|
||||
nsTArray<JSGCCallback> callbacks(self->extraGCCallbacks);
|
||||
for (PRInt32 i = 0; i < callbacks.Length(); ++i) {
|
||||
for (PRUint32 i = 0; i < callbacks.Length(); ++i) {
|
||||
if (!callbacks[i](cx, status))
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user