Fix MSVC C4312 warning when casting 32bit ints to pointer types on 64bit builds
This commit is contained in:
parent
89228e1ebe
commit
b471945224
|
@ -143,7 +143,7 @@ int COMMON_TOOLS::CursorControl( const TOOL_EVENT& aEvent )
|
||||||
button = BUT_RIGHT;
|
button = BUT_RIGHT;
|
||||||
|
|
||||||
TOOL_EVENT evt( TC_MOUSE, action, button | modifiers );
|
TOOL_EVENT evt( TC_MOUSE, action, button | modifiers );
|
||||||
evt.SetParameter( type );
|
evt.SetParameter( static_cast<intptr_t>( type ) );
|
||||||
evt.SetMousePosition( getViewControls()->GetCursorPosition() );
|
evt.SetMousePosition( getViewControls()->GetCursorPosition() );
|
||||||
m_toolMgr->ProcessEvent( evt );
|
m_toolMgr->ProcessEvent( evt );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue