mute an MSVC warning about truncating from an int

This commit is contained in:
Anonymissimus 2011-11-27 15:18:29 +00:00
parent 02103a9181
commit 78bdf5f779

View file

@ -146,7 +146,7 @@ namespace test_utils {
{
SDL_Event event;
event.type = SDL_MOUSEMOTION;
event.motion.x = x;
event.motion.x = static_cast<Uint16>(x);
event.motion.y = y;
event_node_ptr new_move(new event_node_mouse_motion(time, event));
add_event(new_move);