From 3c99602b795292c52aafd12c71cac668ffdbf08f Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sat, 23 Apr 2005 22:13:55 +0000 Subject: [PATCH] Avoid ICE with MinGW 2.95.3. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/notebook.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ) { -- 2.47.2