Skip to content
Snippets Groups Projects
Commit cd199b74 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

typedefs to suppress warnings about using JS_ValueToECMAUint32 w/int32_t

parent 2951994b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2908 passed
......@@ -370,7 +370,7 @@ static JSBool js_system_set(JSContext *cx, JSObject *obj, jsid id, JSBool strict
#ifndef JSDOOR
switch(tiny) {
case SYS_PROP_MISC:
JS_ValueToECMAUint32(cx, *vp, &sys->cfg->sys_misc);
JS_ValueToECMAUint32(cx, *vp, (uint32_t*)&sys->cfg->sys_misc);
break;
case SYS_PROP_OP_AVAIL:
if(!set_sysop_availability(sys->cfg, JSVAL_TO_BOOLEAN(*vp))) {
......@@ -1168,7 +1168,7 @@ js_datestr(JSContext *cx, uintN argc, jsval *arglist)
JS_SET_RVAL(cx, arglist, DOUBLE_TO_JSVAL((double)dstrtounix(sys->cfg, p)));
return(JS_TRUE);
}
JS_ValueToECMAUint32(cx,argv[0],&t);
JS_ValueToECMAUint32(cx,argv[0],(uint32_t*)&t);
}
unixtodstr(sys->cfg,t,str);
if((js_str = JS_NewStringCopyZ(cx, str))==NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment