From 1a60a35769bcb2554a4527048b13cf75ad4022d6 Mon Sep 17 00:00:00 2001 From: Tyker Date: Fri, 14 Oct 2022 13:38:29 -0700 Subject: [PATCH] Remove sign comparaison warning in APFixedPointTest.cpp --- llvm/unittests/ADT/APFixedPointTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/unittests/ADT/APFixedPointTest.cpp b/llvm/unittests/ADT/APFixedPointTest.cpp index ecb89fb..955a7ad 100644 --- a/llvm/unittests/ADT/APFixedPointTest.cpp +++ b/llvm/unittests/ADT/APFixedPointTest.cpp @@ -279,7 +279,7 @@ void CheckIntPartMax(const FixedPointSemantics &Sema, uint64_t Expected) { void CheckIntPartRes(const FixedPointSemantics &Sema, int64_t Representation, uint64_t Result) { APFixedPoint Val(Representation, Sema); - ASSERT_EQ(Val.getIntPart().getZExtValue(), Result) ; + ASSERT_EQ(Val.getIntPart().getSExtValue(), Result); } TEST(FixedPoint, getIntPart) { -- 2.7.4