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.
This commit is contained in:
1 parent
1ff28f2389
commit
d62dfd87f9
1 file changed
+2
@@ -816,6 +816,8 @@ void Sys_PlatformInit( void )
|
|||||||
signal( SIGIOT, Sys_SigHandler );
|
signal( SIGIOT, Sys_SigHandler );
|
||||||
signal( SIGBUS, Sys_SigHandler );
|
signal( SIGBUS, Sys_SigHandler );
|
||||||
|
|
||||||
|
Sys_SetFloatEnv();
|
||||||
|
|
||||||
stdinIsATTY = isatty( STDIN_FILENO ) &&
|
stdinIsATTY = isatty( STDIN_FILENO ) &&
|
||||||
!( term && ( !strcmp( term, "raw" ) || !strcmp( term, "dumb" ) ) );
|
!( term && ( !strcmp( term, "raw" ) || !strcmp( term, "dumb" ) ) );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user