Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
cd199b74
Commit
cd199b74
authored
Mar 20, 2022
by
Rob Swindell
💬
Browse files
typedefs to suppress warnings about using JS_ValueToECMAUint32 w/int32_t
parent
2951994b
Pipeline
#2908
passed with stage
in 12 minutes and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/sbbs3/js_system.c
src/sbbs3/js_system.c
+2
-2
No files found.
src/sbbs3/js_system.c
View file @
cd199b74
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment