FixedMath.Net icon indicating copy to clipboard operation
FixedMath.Net copied to clipboard

Conversions from float and double are unspecified in case of overflow

Open asik opened this issue 10 years ago • 0 comments

Conversion from float and double emit conv.i8 instructions which are unspecified in case of overflow; this means the type has unspecified behavior in this case.

The best approach would be to throw OverflowException in these cases, by emitting conv.ovf.i8 instead. The checked keyword in C# allows this.

asik avatar Sep 07 '16 21:09 asik