mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
For some wacky reason, jsuint gets assigned different types in TabParent.cpp on MSVC and this gives a linker error
This commit is contained in:
parent
549c391960
commit
86eab7cd9a
@ -3229,7 +3229,7 @@ js_CoerceArrayToCanvasImageData(JSObject *obj, jsuint offset, jsuint count,
|
||||
}
|
||||
|
||||
JS_FRIEND_API(JSObject *)
|
||||
js_NewArrayObjectWithCapacity(JSContext *cx, jsuint capacity, jsval **vector)
|
||||
js_NewArrayObjectWithCapacity(JSContext *cx, uint32 capacity, jsval **vector)
|
||||
{
|
||||
JSObject *obj = js_NewArrayObject(cx, capacity, NULL);
|
||||
if (!obj)
|
||||
|
@ -45,7 +45,6 @@
|
||||
#include "jsprvtd.h"
|
||||
#include "jspubtd.h"
|
||||
#include "jsobj.h"
|
||||
#include "jsatom.h"
|
||||
|
||||
#define ARRAY_CAPACITY_MIN 7
|
||||
|
||||
@ -64,7 +63,7 @@ js_IdIsIndex(jsid id, jsuint *indexp)
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
if (JS_UNLIKELY(!JSID_IS_ATOM(id)))
|
||||
if (JS_UNLIKELY(!JSID_IS_STRING(id)))
|
||||
return JS_FALSE;
|
||||
|
||||
return js_StringIsIndex(JSID_TO_STRING(id), indexp);
|
||||
@ -255,7 +254,7 @@ js_Array(JSContext* cx, JSObject* obj, uintN argc, js::Value* argv, js::Value* r
|
||||
* resulting array has length and count both equal to |capacity|.
|
||||
*/
|
||||
JS_FRIEND_API(JSObject *)
|
||||
js_NewArrayObjectWithCapacity(JSContext *cx, jsuint capacity, jsval **vector);
|
||||
js_NewArrayObjectWithCapacity(JSContext *cx, uint32 capacity, jsval **vector);
|
||||
|
||||
/*
|
||||
* Makes a fast clone of a dense array as long as the array only contains
|
||||
|
Loading…
Reference in New Issue
Block a user