Fixed warning 'cast pointer from integer of a different size'

This commit is contained in:
Maciej Suminski 2017-01-23 10:09:42 +01:00
parent fc7be1a497
commit f0a7c1715e
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ GRID_MENU::GRID_MENU( EDA_DRAW_FRAME* aParent ) : m_parent( aParent )
OPT_TOOL_EVENT GRID_MENU::eventHandler( const wxMenuEvent& aEvent )
{
OPT_TOOL_EVENT event( COMMON_ACTIONS::gridPreset.MakeEvent() );
long idx = aEvent.GetId() - ID_POPUP_GRID_SELECT - 1;
intptr_t idx = aEvent.GetId() - ID_POPUP_GRID_SELECT - 1;
event->SetParameter( idx );
return event;

View File

@ -52,7 +52,7 @@ ZOOM_MENU::ZOOM_MENU( EDA_DRAW_FRAME* aParent ) : m_parent( aParent )
OPT_TOOL_EVENT ZOOM_MENU::eventHandler( const wxMenuEvent& aEvent )
{
OPT_TOOL_EVENT event( COMMON_ACTIONS::zoomPreset.MakeEvent() );
long idx = aEvent.GetId() - ID_POPUP_ZOOM_LEVEL_START;
intptr_t idx = aEvent.GetId() - ID_POPUP_ZOOM_LEVEL_START;
event->SetParameter( idx );
return event;