forked from icaven/glm
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Milestone
Description
This test
glm/glm/ext/scalar_relational.inl
Lines 27 to 31 in ea678fa
if(a.negative() != b.negative()) | |
{ | |
// Check for equality to make sure +0==-0 | |
return a.mantissa() == b.mantissa() && a.exponent() == b.exponent(); | |
} |
will return true for any two number of different sign but with equal magnitude.
the test on line 30 should be return x==y;
Example
https://godbolt.org/z/iR8unh
Metadata
Metadata
Assignees
Labels
No labels