about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-06-14 10:01:10 +0200
committerptitSeb <sebastien.chev@gmail.com>2025-06-14 10:01:10 +0200
commit9d93770a84f540a5dba1cd6b3f2938c8527f98ff (patch)
tree03ae0668f9cce7d97674591f0785aeef1b3e4333 /src
parent3b53d2dac74709d090afd9c325449a8b503d70f7 (diff)
downloadbox64-9d93770a84f540a5dba1cd6b3f2938c8527f98ff.tar.gz
box64-9d93770a84f540a5dba1cd6b3f2938c8527f98ff.zip
[WOWBOX64] Fixed a few more warnings
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64primop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/x64primop.c b/src/emu/x64primop.c
index f29b9ad9..b45e7e41 100644
--- a/src/emu/x64primop.c
+++ b/src/emu/x64primop.c
@@ -960,7 +960,7 @@ uint64_t ror64(x64emu_t *emu, uint64_t d, uint8_t s)
 	if(BOX64ENV(cputype)) CONDITIONAL_SET_FLAG(XOR2(d >> 62), F_OF);
 
 	/* set new CF; note that it is the MSB of the result */
-	CONDITIONAL_SET_FLAG(d & (1L << 63), F_CF);
+	CONDITIONAL_SET_FLAG(d & (1LL << 63), F_CF);
 
 	return d;
 }
@@ -1433,7 +1433,7 @@ void idiv32(x64emu_t *emu, uint32_t s)
 	ldiv_t p = ldiv(dvd, (int32_t)s);
 	quot = p.quot;
 	mod = p.rem;
-	if (labs(quot) > 0x7fffffff) {
+	if (llabs(quot) > 0x7fffffff) {
 		INTR_RAISE_DIV0(emu);
 		return;
 	}