X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02dad85e87995135fd8ed9db043c0820c652888e..1d3216f76d60e8382cac4503b12a02599b4323dc:/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;