Skip to content

NaN Logic #319

@stellarpower

Description

@stellarpower

https://github.com/neuromore/studio/blob/1.7.3/src/Engine/Core/Math.inl#L11

Not sure how this is apparently working (or if it is) but the NaN should never compare equal to itself. On earlier versions of C isnan was often a macro that expanded to this comparison. isnan is in the standard library since C++11 so IMO this ought to be used on all platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions