add cast to make c++ happy
This commit is contained in:
parent
f507660841
commit
31a0e8925e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user