Fix MSVC C4312 warning when casting 32bit ints to pointer types on 64bit builds

This commit is contained in:
david-beinder 2021-11-22 01:43:45 +01:00 committed by Seth Hillbrand
parent 89228e1ebe
commit b471945224
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ int COMMON_TOOLS::CursorControl( const TOOL_EVENT& aEvent )
button = BUT_RIGHT;
TOOL_EVENT evt( TC_MOUSE, action, button | modifiers );
evt.SetParameter( type );
evt.SetParameter( static_cast<intptr_t>( type ) );
evt.SetMousePosition( getViewControls()->GetCursorPosition() );
m_toolMgr->ProcessEvent( evt );