Skip to content

Casting a known NaN value to an integral type #371

Closed
@llogiq

Description

@llogiq

This is actually undefined behavior, and doesn't even get a warning from rustc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions