Fix TDM-GCC warning about int to pointer cast.

Use wxUIntToPtr() to suppress the warning, we know that the cast here is safe
because Windows uses only pointers fitting in the UINT range for the menu (and
other) handles.
This commit is contained in:
Vadim Zeitlin
2015-06-14 20:37:33 +02:00
parent 2ea1d3fc19
commit 77fb8cb8c1

View File

@@ -1272,7 +1272,7 @@ int wxMenuItem::MSGetMenuItemPos() const
if ( state & MF_POPUP )
{
if ( ::GetSubMenu(hMenu, i) == (HMENU)id )
if ( ::GetSubMenu(hMenu, i) == (HMENU)wxUIntToPtr(id) )
return i;
}
else if ( !(state & MF_SEPARATOR) )