From aac04facffa150140571fce7de783d0c63d0e506 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 27 Mar 2004 05:34:37 +0000 Subject: [PATCH] compiler warning fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/gsockosx.cpp | 2 +- src/mac/corefoundation/gsockosx.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/gsockosx.cpp b/src/mac/carbon/gsockosx.cpp index 614ed425c8..8d888ec8d0 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; diff --git a/src/mac/corefoundation/gsockosx.cpp b/src/mac/corefoundation/gsockosx.cpp index 614ed425c8..8d888ec8d0 100644 --- a/src/mac/corefoundation/gsockosx.cpp +++ b/src/mac/corefoundation/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; -- 2.45.2