1
0
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:
Thomas Harte 2022-06-02 21:39:52 -04:00
parent 2bd20446bb
commit c3b436fe96

View File

@ -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); \