From d34791c2befa3529dbb0584c30a9b37f8ddc77c9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 23 Jan 2012 11:28:05 +0000 Subject: [PATCH] Fix incorrect cast resulting in a warning in wxMSW wxMenu code. Menu id is a 32 bit UINT value, even in 64 bit builds, so don't cast it to UINT_PTR. Closes #13815. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index 3b8566fd2d..8798b7d2ce 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -931,7 +931,7 @@ void wxMenu::SetTitle(const wxString& label) // put the title string in bold face if ( !m_title.empty() ) { - SetDefaultMenuItem(GetHmenu(), (UINT_PTR)idMenuTitle); + SetDefaultMenuItem(GetHmenu(), (UINT)idMenuTitle); } #endif // Win32 } -- 2.45.2