diff options
author | Zack Middleton <zturtleman@gmail.com> | 2015-01-12 16:31:48 -0600 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2015-03-17 11:39:12 +0000 |
commit | 81a444169f2dff64760fa8addb8b6cb6d7fe4694 (patch) | |
tree | f4aa65752307133c8ddaefc24df3ea055f06304b | |
parent | f8ad4bb13a4c24d65b46491674819947de3c174b (diff) |
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.
-rw-r--r-- | src/sys/sys_unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
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" ) ) ); } |