diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-02-19 11:41:31 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-02-20 20:25:21 +0100 |
| commit | 4a1e05524affadab3ba5a75f79c115a0743e483f (patch) | |
| tree | bea7148d6e0fb8f585d5629a4588e8ab373a66d2 /src | |
| parent | 93c447051cce08678bd10798ccbbca383505b0e4 (diff) | |
| download | box64-4a1e05524affadab3ba5a75f79c115a0743e483f.tar.gz box64-4a1e05524affadab3ba5a75f79c115a0743e483f.zip | |
Fixed a regression with factorio
Diffstat (limited to 'src')
| -rwxr-xr-x | src/emu/x87emu_private.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/x87emu_private.c b/src/emu/x87emu_private.c index fc104557..2114c00d 100755 --- a/src/emu/x87emu_private.c +++ b/src/emu/x87emu_private.c @@ -201,7 +201,7 @@ void D2LD(void* d, void* ld) double FromLD(void* ld) { - double ret = 0; + double ret; // cannot add = 0; it break factorio (issue when calling fmodl) LD2D(ld, &ret); return ret; } @@ -210,7 +210,7 @@ double FromLD(void* ld) long double LD2localLD(void* ld) { // local implementation may not be try Quad precision, but double-double precision, so simple way to keep the 80bits precision in the conversion - double ret = 0; + double ret; // cannot add = 0; it break factorio (issue when calling fmodl) LD2D(ld, &ret); return ret; } |