We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4239bb7 commit fb2806bCopy full SHA for fb2806b
libc/test/include/complex_test.cpp
@@ -27,8 +27,8 @@ TEST(LlvmLibcComplexTest, CMPLXMacro) {
27
EXPECT_CFP_EQ(CMPLXL(1.0l, 0), 1.0l);
28
29
#ifdef LIBC_TYPES_HAS_CFLOAT16
30
- EXPECT_CFP_EQ(CMPLXF16(0, 1.0), I);
31
- EXPECT_CFP_EQ(CMPLXF16(1.0, 0), 1.0);
+ EXPECT_CFP_EQ(CMPLXF16(0, 1.0), (_Complex _Float16)I);
+ EXPECT_CFP_EQ(CMPLXF16(1.0, 0), (_Complex _Float16)1.0);
32
#endif // LIBC_TYPES_HAS_CFLOAT16
33
34
#ifdef LIBC_TYPES_HAS_CFLOAT128
0 commit comments