From: Stefan Csomor Date: Sat, 26 May 2007 05:45:52 +0000 (+0000) Subject: mac complaining about const to non-const cast X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fa15eac7ec164a9a5a2ae961953307a7f6abca3f mac complaining about const to non-const cast git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/selectdispatcher.cpp b/src/common/selectdispatcher.cpp index adfc2eba62..ccb19b54f6 100644 --- a/src/common/selectdispatcher.cpp +++ b/src/common/selectdispatcher.cpp @@ -79,7 +79,7 @@ bool wxSelectSets::HasFD(int fd) const { for ( int n = 0; n < Max; n++ ) { - if ( wxFD_ISSET(fd, &m_fds[n]) ) + if ( wxFD_ISSET(fd, (fd_set*) &m_fds[n]) ) return true; } @@ -98,7 +98,7 @@ bool wxSelectSets::SetFD(int fd, int flags) wxLogTrace(wxSelectDispatcher_Trace, _T("Registered fd %d for %s events"), fd, ms_names[n]); } - else if ( wxFD_ISSET(fd, &m_fds[n]) ) + else if ( wxFD_ISSET(fd, (fd_set*) &m_fds[n]) ) { wxFD_CLR(fd, &m_fds[n]); wxLogTrace(wxSelectDispatcher_Trace, @@ -118,7 +118,7 @@ void wxSelectSets::Handle(int fd, wxFDIOHandler& handler) const { for ( int n = 0; n < Max; n++ ) { - if ( wxFD_ISSET(fd, &m_fds[n]) ) + if ( wxFD_ISSET(fd, (fd_set*) &m_fds[n]) ) { wxLogTrace(wxSelectDispatcher_Trace, _T("Got %s event on fd %d"), ms_names[n], fd);