diff --git a/libc/test/src/math/smoke/nanl_test.cpp b/libc/test/src/math/smoke/nanl_test.cpp index c0e9540161129..0a57b567916c9 100644 --- a/libc/test/src/math/smoke/nanl_test.cpp +++ b/libc/test/src/math/smoke/nanl_test.cpp @@ -28,7 +28,7 @@ class LlvmLibcNanlTest : public LIBC_NAMESPACE::testing::Test { long double result = LIBC_NAMESPACE::nanl(input_str); auto actual_fp = LIBC_NAMESPACE::fputil::FPBits(result); auto expected_fp = LIBC_NAMESPACE::fputil::FPBits(bits); - EXPECT_EQ(actual_fp.bits, expected_fp.bits); + EXPECT_EQ(actual_fp.uintval(), expected_fp.uintval()); }; };