Fixed warning 'cast pointer from integer of a different size'
This commit is contained in:
parent
fc7be1a497
commit
f0a7c1715e
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue