Changed paths:
M hilti/toolchain/src/compiler/coercer.cc
Log Message:
-----------
Avoid overflows when checking coercion from `real` to integer type
The casts from `double` to integral type could previously trigger UB at
compile time if the `double` value was outside of the range of the
integral type, NaN or infinity. To handle this correctly we add a range
check in this patch. Due to the way comparisons against float NaN and
infinity work they are also handled.