Skip to content

integer to floating point casts can cause undefined behaviour #10185

Closed
@thestinger

Description

@thestinger

If the value cannot fit in the floating point value, the results are undefined.

-1u64 as f32

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions