From 9d93770a84f540a5dba1cd6b3f2938c8527f98ff Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 14 Jun 2025 10:01:10 +0200 Subject: [WOWBOX64] Fixed a few more warnings --- src/emu/x64primop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit 1.4.1