about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-02-19 11:41:31 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-02-20 20:25:21 +0100
commit4a1e05524affadab3ba5a75f79c115a0743e483f (patch)
treebea7148d6e0fb8f585d5629a4588e8ab373a66d2 /src
parent93c447051cce08678bd10798ccbbca383505b0e4 (diff)
downloadbox64-4a1e05524affadab3ba5a75f79c115a0743e483f.tar.gz
box64-4a1e05524affadab3ba5a75f79c115a0743e483f.zip
Fixed a regression with factorio
Diffstat (limited to 'src')
-rwxr-xr-xsrc/emu/x87emu_private.c4
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;
 }