about summary refs log tree commit diff stats
path: root/src/emu
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-07-17 09:19:58 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-07-17 09:19:58 +0200
commitfc67b208adf778b3f1def4d63d1b26fadbd3793a (patch)
tree96edb429df27ba6ba99dfd74472d6e73055f8bd9 /src/emu
parentb6f83007eb196fda6292ec16755953b126a4a03e (diff)
downloadbox64-fc67b208adf778b3f1def4d63d1b26fadbd3793a.tar.gz
box64-fc67b208adf778b3f1def4d63d1b26fadbd3793a.zip
Fixed a few warnings
Diffstat (limited to 'src/emu')
-rwxr-xr-xsrc/emu/x64int3.c2
-rwxr-xr-xsrc/emu/x87emu_private.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/x64int3.c b/src/emu/x64int3.c
index fd0d2f3a..7413ebcc 100755
--- a/src/emu/x64int3.c
+++ b/src/emu/x64int3.c
@@ -138,7 +138,7 @@ void x64Int3(x64emu_t* emu)
                     snprintf(buff, 255, "%04d|%p: Calling %s(%d, %ld, %d)", tid, *(void**)(R_RSP), s, (int)R_EDI, (int64_t)R_RSI, (int)R_EDX);
                     perr = 1;
                 } else if (!strcmp(s, "recvmsg")) {
-                    snprintf(buff, 255, "%04d|%p: Calling %s(%d, %p, 0x%x)", tid, *(void**)(R_RSP), s, R_EDI, (void*)R_RSI, R_RDX);
+                    snprintf(buff, 255, "%04d|%p: Calling %s(%d, %p, 0x%x)", tid, *(void**)(R_RSP), s, R_EDI, (void*)R_RSI, R_EDX);
                     perr = 1;
                 } else if (strstr(s, "puts")==s) {
                     tmp = (char*)(R_RDI);
diff --git a/src/emu/x87emu_private.c b/src/emu/x87emu_private.c
index 0ab63a6e..f151ee45 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;
+    double ret = 0.0;
     LD2D(ld, &ret);
     return ret;
 }