From 81a444169f2dff64760fa8addb8b6cb6d7fe4694 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 12 Jan 2015 16:31:48 -0600 Subject: Set float rounding mode on non-Windows platforms Sys_SetFloatEnv in sys_unix.c existed but was not called. It sets the rounding mode to "to nearest" which is the default on Linux. Might be required on other platforms, I don't know. --- src/sys/sys_unix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sys/sys_unix.c b/src/sys/sys_unix.c index 7d497459..4e6b1ebf 100644 --- a/src/sys/sys_unix.c +++ b/src/sys/sys_unix.c @@ -809,6 +809,8 @@ void Sys_PlatformInit( void ) signal( SIGIOT, Sys_SigHandler ); signal( SIGBUS, Sys_SigHandler ); + Sys_SetFloatEnv(); + stdinIsATTY = isatty( STDIN_FILENO ) && !( term && ( !strcmp( term, "raw" ) || !strcmp( term, "dumb" ) ) ); } -- cgit