Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
This repository was 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

@asik

Description

@asik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions