From 31a0e8925eb0a08d8052eb81c4ffd922c599e276 Mon Sep 17 00:00:00 2001 From: Paolo Marrone Date: Wed, 14 May 2025 18:09:22 +0200 Subject: [PATCH] add cast to make c++ happy --- test/plugin_ui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plugin_ui.h b/test/plugin_ui.h index 08394ed..63cc82a 100644 --- a/test/plugin_ui.h +++ b/test/plugin_ui.h @@ -178,7 +178,7 @@ static void on_window_resize (window *w, int32_t width, int32_t height) { } static plugin_ui *plugin_ui_create(char has_parent, void *parent, plugin_ui_callbacks *cbs) { - plugin_ui *instance = malloc(sizeof(plugin_ui)); + plugin_ui *instance = (plugin_ui *) malloc(sizeof(plugin_ui)); if (instance == NULL) return NULL;