Skip to content

Commit c20d7b1

Browse files
committed
fix warnings come fromm LlvmLibcAsinpif16Test.SymmetryProperty test
1 parent 30e4cc0 commit c20d7b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libc/test/src/math/asinpif16_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ TEST_F(LlvmLibcAsinpif16Test, SymmetryProperty) {
8282
float16 pos_result = LIBC_NAMESPACE::asinpif16(x);
8383
float16 neg_result = LIBC_NAMESPACE::asinpif16(-x);
8484

85-
EXPECT_FP_EQ(pos_result, LIBC_NAMESPACE::fabs(neg_result));
85+
EXPECT_FP_EQ(pos_result,
86+
static_cast<float16>(LIBC_NAMESPACE::fabs(neg_result)));
8687
}
8788
}
8889
}

0 commit comments

Comments
 (0)