mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-22 12:33:29 +00:00
Use int64_t
as an intermediary to avoid x86 exception on INT_MIN/-1.
This commit is contained in:
parent
2bd20446bb
commit
c3b436fe96
@ -533,7 +533,7 @@ template <
|
||||
return; \
|
||||
} \
|
||||
\
|
||||
const auto quotient = dividend / divisor; \
|
||||
const auto quotient = int64_t(dividend) / int64_t(divisor); \
|
||||
if(quotient != Type32(Type16(quotient))) { \
|
||||
status.overflow_flag = 1; \
|
||||
flow_controller.template flow_function<true>(dividend, divisor); \
|
||||
|
Loading…
Reference in New Issue
Block a user