From 3c57698140f17e64f61f1b0f651f240d9ea58875 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Fri, 16 Oct 2015 17:12:11 +0200 Subject: [PATCH] Use correct WPARAM type for a MSW ID and not UINT These types are of different size under Win64, so even if IDs are 32 bits, truncating a 64 bit value to 32 bit UINT resulted in a warning. Fix this by just using WPARAM for the variable type in the first place. --- src/msw/menuitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/menuitem.cpp b/src/msw/menuitem.cpp index ef7b98254e..7b3acb2470 100644 --- a/src/msw/menuitem.cpp +++ b/src/msw/menuitem.cpp @@ -1403,7 +1403,7 @@ int wxMenuItem::MSGetMenuItemPos() const if ( !hMenu ) return -1; - const UINT id = GetMSWId(); + const WXWPARAM id = GetMSWId(); const int menuItems = ::GetMenuItemCount(hMenu); for ( int i = 0; i < menuItems; i++ ) {