From: Mattia Barbon Date: Sat, 23 Apr 2005 22:13:55 +0000 (+0000) Subject: Avoid ICE with MinGW 2.95.3. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3c99602b795292c52aafd12c71cac668ffdbf08f Avoid ICE with MinGW 2.95.3. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index 669d99dade..925dee0c9a 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -964,8 +964,9 @@ void wxNotebook::OnNavigationKey(wxNavigationKeyEvent& event) // wxWindow * const parent = GetParent(); - const bool isFromParent = event.GetEventObject() == parent; - const bool isFromSelf = event.GetEventObject() == this; + // the wxObject* casts are required to avoid MinGW GCC 2.95.3 ICE + const bool isFromParent = event.GetEventObject() == (wxObject*) parent; + const bool isFromSelf = event.GetEventObject() == (wxObject*) this; if ( isFromParent || isFromSelf ) {