add cast to make c++ happy

This commit is contained in:
Paolo Marrone 2025-05-14 18:09:22 +02:00
parent f507660841
commit 31a0e8925e

View File

@ -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;