Skip to content

Commit bfd6971

Browse files
committed
Remove unnecessary casts
Follow-up to #195
1 parent c29ae8d commit bfd6971

File tree

4 files changed

+101
-101
lines changed

4 files changed

+101
-101
lines changed

quickjs-libc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2213,7 +2213,7 @@ static int handle_posted_message(JSRuntime *rt, JSContext *ctx,
22132213
/* 'func' might be destroyed when calling itself (if it frees the
22142214
handler), so must take extra care */
22152215
func = JS_DupValue(ctx, port->on_message_func);
2216-
retval = JS_Call(ctx, func, JS_UNDEFINED, 1, (JSValue *)&obj);
2216+
retval = JS_Call(ctx, func, JS_UNDEFINED, 1, &obj);
22172217
JS_FreeValue(ctx, obj);
22182218
JS_FreeValue(ctx, func);
22192219
if (JS_IsException(retval)) {

0 commit comments

Comments
 (0)