Revert "Remove sign comparaison warning in APFixedPointTest.cpp"
authorTyker <tyker1@outlook.com>
Fri, 14 Oct 2022 20:40:12 +0000 (13:40 -0700)
committerTyker <tyker1@outlook.com>
Fri, 14 Oct 2022 20:40:12 +0000 (13:40 -0700)
has already been fixed

This reverts commit 1a60a35769bcb2554a4527048b13cf75ad4022d6.

llvm/unittests/ADT/APFixedPointTest.cpp

index 955a7ad..ecb89fb 100644 (file)
@@ -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().getSExtValue(), Result);
+  ASSERT_EQ(Val.getIntPart().getZExtValue(), Result) ;
 }
 
 TEST(FixedPoint, getIntPart) {