Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Conversions from float and double are unspecified in case of overflow #9

Open
asik opened this issue Sep 7, 2016 · 0 comments
Open

Comments

@asik
Copy link
Owner

asik commented Sep 7, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant