diff --git a/pcbnew/tools/grid_menu.cpp b/pcbnew/tools/grid_menu.cpp index e6a23e4b1f..7501a4b972 100644 --- a/pcbnew/tools/grid_menu.cpp +++ b/pcbnew/tools/grid_menu.cpp @@ -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; diff --git a/pcbnew/tools/zoom_menu.cpp b/pcbnew/tools/zoom_menu.cpp index 77c6101cb1..b11ea190bd 100644 --- a/pcbnew/tools/zoom_menu.cpp +++ b/pcbnew/tools/zoom_menu.cpp @@ -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;