From 98c3c3a3ae1dd2a627a83375750a791842d5d870 Mon Sep 17 00:00:00 2001 From: Ronald Kinard Date: Thu, 13 Nov 2014 23:09:57 -0600 Subject: [PATCH] More warning squashing --- src/sdl/i_system.c | 2 +- src/sdl/i_video.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 3eb52bc5..c0f6801a 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -742,7 +742,7 @@ static inline void I_ShutdownConsole(void){} // void I_StartupKeyboard (void) { -#if defined (NDEBUG) && !defined (DC) +#if !defined (DC) #ifdef SIGILL signal(SIGILL , signal_handler); #endif diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 9229b6ea..660263b3 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -741,8 +741,8 @@ static void Impl_HandleMouseMotionEvent(SDL_MouseMotionEvent evt) } else { - event.data2 = (INT32)round((evt.xrel) * ((float)wwidth / (float)realwidth)); - event.data3 = (INT32)round(-evt.yrel * ((float)wheight / (float)realheight)); + event.data2 = (INT32)lround((evt.xrel) * ((float)wwidth / (float)realwidth)); + event.data3 = (INT32)lround(-evt.yrel * ((float)wheight / (float)realheight)); } event.type = ev_mouse;