From 1a312ce8293af6cff7585f1a7dc15c482b0ccdcb Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 25 Feb 2022 19:18:01 +0100 Subject: [PATCH] [spidermonkey] casts in unibar --- src/ecmascript/spidermonkey/unibar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ecmascript/spidermonkey/unibar.c b/src/ecmascript/spidermonkey/unibar.c index e4777a34..d2d5bb88 100644 --- a/src/ecmascript/spidermonkey/unibar.c +++ b/src/ecmascript/spidermonkey/unibar.c @@ -141,7 +141,7 @@ unibar_get_property_visible(JSContext *ctx, unsigned int argc, JS::Value *vp) return false; } - struct ecmascript_interpreter *interpreter = JS::GetRealmPrivate(comp); + struct ecmascript_interpreter *interpreter = (struct ecmascript_interpreter *)JS::GetRealmPrivate(comp); /* This can be called if @obj if not itself an instance of either * appropriate class but has one in its prototype chain. Fail @@ -163,7 +163,7 @@ unibar_get_property_visible(JSContext *ctx, unsigned int argc, JS::Value *vp) } doc_view = vs->doc_view; status = &doc_view->session->status; - bar = JS_GetPrivate(hobj); /* from @menubar_class or @statusbar_class */ + bar = (char *)JS_GetPrivate(hobj); /* from @menubar_class or @statusbar_class */ #define unibar_fetch(bar) \ status->force_show_##bar##_bar >= 0 \ @@ -207,7 +207,7 @@ unibar_set_property_visible(JSContext *ctx, unsigned int argc, JS::Value *vp) return false; } - struct ecmascript_interpreter *interpreter = JS::GetRealmPrivate(comp); + struct ecmascript_interpreter *interpreter = (struct ecmascript_interpreter *)JS::GetRealmPrivate(comp); /* This can be called if @obj if not itself an instance of either * appropriate class but has one in its prototype chain. Fail @@ -229,7 +229,7 @@ unibar_set_property_visible(JSContext *ctx, unsigned int argc, JS::Value *vp) } doc_view = vs->doc_view; status = &doc_view->session->status; - bar = JS_GetPrivate(hobj); /* from @menubar_class or @statusbar_class */ + bar = (char *)JS_GetPrivate(hobj); /* from @menubar_class or @statusbar_class */ switch (*bar) { case 's':