From f0a7c1715ec3d89aac11e740acc1c5cf6b353414 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 23 Jan 2017 10:09:42 +0100 Subject: [PATCH] Fixed warning 'cast pointer from integer of a different size' --- pcbnew/tools/grid_menu.cpp | 2 +- pcbnew/tools/zoom_menu.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;