diff options
| author | rajdakin <rajdakin@gmail.com> | 2021-04-13 11:38:33 +0200 |
|---|---|---|
| committer | rajdakin <rajdakin@gmail.com> | 2021-04-14 13:12:04 +0200 |
| commit | 51fa96c44b4b307a6d512a7fe943fb75b4f681ac (patch) | |
| tree | ad1e801517ea5ca1fa494c23f20a1ffc328fdfe9 /src/emu | |
| parent | 48d61351061dcf1ee3148c67d208f20bdf22a3b8 (diff) | |
| download | box64-51fa96c44b4b307a6d512a7fe943fb75b4f681ac.tar.gz box64-51fa96c44b4b307a6d512a7fe943fb75b4f681ac.zip | |
Second pass
Diffstat (limited to 'src/emu')
| -rwxr-xr-x | src/emu/x64primop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/x64primop.c b/src/emu/x64primop.c index 4c443f46..83bcd046 100755 --- a/src/emu/x64primop.c +++ b/src/emu/x64primop.c @@ -1400,7 +1400,7 @@ void idiv64(x64emu_t *emu, uint64_t s) } quot = dvd/(int64_t)s; mod = dvd%(int64_t)s; - if (llabs(quot) > 0x7fffffffffffffffL) { + if ((quot > 0x7fffffffffffffffLL) || (quot < -0x7fffffffffffffffLL)) { INTR_RAISE_DIV0(emu); return; } |