diff --git a/test/half.cpp b/test/half.cpp index e614d971..8c2c496c 100644 --- a/test/half.cpp +++ b/test/half.cpp @@ -30,7 +30,7 @@ static inline int isnan(float f) { union { float f; uint32_t x; } u = { f }; - return (~u.x << 1) < 0x00fffffeu; + return (u.x << 1) > 0xff000000u; } #endif