From 89952dfec4388c632642f9f2a3b5b0d54c719d8d Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 29 Jan 2022 11:18:56 +0100 Subject: [PATCH] [lua] cast --- src/scripting/lua/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripting/lua/core.c b/src/scripting/lua/core.c index 4f6dcdafb..f10f460d9 100644 --- a/src/scripting/lua/core.c +++ b/src/scripting/lua/core.c @@ -160,7 +160,7 @@ l_current_document(LS) { if (lua_ses && lua_ses->doc_view && lua_ses->doc_view->document) { struct cache_entry *cached = lua_ses->doc_view->document->cached; - struct fragment *f = cached ? cached->frag.next : NULL; + struct fragment *f = (struct fragment *)(cached ? cached->frag.next : NULL); if (f && f->length) { lua_pushlstring(S, f->data, f->length); @@ -371,7 +371,7 @@ struct lua_dlg_data { static void dialog_run_lua(void *data_) { - struct lua_dlg_data *data = data_; + struct lua_dlg_data *data = (struct lua_dlg_data *)data_; lua_State *s = data->state; lua_pushstring(s, data->cat); @@ -447,7 +447,7 @@ struct lua_xdialog_data { static void xdialog_run_lua(void *data_) { - struct lua_xdialog_data *data = data_; + struct lua_xdialog_data *data = (struct lua_xdialog_data *)data_; lua_State *s = data->state; int i;