X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02dad85e87995135fd8ed9db043c0820c652888e..aa522e33fca3ac2562a7c347b8f566d4486c9926:/src/mac/carbon/gsockosx.cpp diff --git a/src/mac/carbon/gsockosx.cpp b/src/mac/carbon/gsockosx.cpp index 614ed425c8..b9df39196e 100644 --- a/src/mac/carbon/gsockosx.cpp +++ b/src/mac/carbon/gsockosx.cpp @@ -87,7 +87,7 @@ void _GSocket_GUI_Cleanup(void) int _GSocket_GUI_Init_Socket(GSocket *socket) { - struct MacGSocketData *data = malloc(sizeof(struct MacGSocketData)); + struct MacGSocketData *data = (struct MacGSocketData *)malloc(sizeof(struct MacGSocketData)); if (data) { socket->m_gui_dependent = (char*)data;