Skip to content

Commit fb2806b

Browse files
error: implicit conversion loses floating-point precision: '_Complex float' to '_Complex _Float16' [-Werror,-Wimplicit-float-conversion]
1 parent 4239bb7 commit fb2806b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/test/include/complex_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ TEST(LlvmLibcComplexTest, CMPLXMacro) {
2727
EXPECT_CFP_EQ(CMPLXL(1.0l, 0), 1.0l);
2828

2929
#ifdef LIBC_TYPES_HAS_CFLOAT16
30-
EXPECT_CFP_EQ(CMPLXF16(0, 1.0), I);
31-
EXPECT_CFP_EQ(CMPLXF16(1.0, 0), 1.0);
30+
EXPECT_CFP_EQ(CMPLXF16(0, 1.0), (_Complex _Float16)I);
31+
EXPECT_CFP_EQ(CMPLXF16(1.0, 0), (_Complex _Float16)1.0);
3232
#endif // LIBC_TYPES_HAS_CFLOAT16
3333

3434
#ifdef LIBC_TYPES_HAS_CFLOAT128

0 commit comments

Comments
 (0)