From adcfe4cadba412955fb7caff8aca6eeb04c39ac1 Mon Sep 17 00:00:00 2001 From: Zia Date: Thu, 14 Mar 2024 01:20:53 +0330 Subject: [PATCH] class id argument type fix --- quickjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickjs.c b/quickjs.c index 2a7f3e0..2423d40 100644 --- a/quickjs.c +++ b/quickjs.c @@ -4943,7 +4943,7 @@ static int JS_SetObjectData(JSContext *ctx, JSValueConst obj, JSValue val) return -1; } -JSValue JS_NewObjectClass(JSContext *ctx, int class_id) +JSValue JS_NewObjectClass(JSContext *ctx, JSClassID class_id) { return JS_NewObjectProtoClass(ctx, ctx->class_proto[class_id], class_id); }