[llvm] 2a879e6 - [APFloat][unittest] Fix -Wsign-compare after D69773
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 12:24:42 PST 2020
Author: Fangrui Song
Date: 2020-01-21T12:24:34-08:00
New Revision: 2a879e6884bb95da747755e8eb219f2df3d4e488
URL: https://github.com/llvm/llvm-project/commit/2a879e6884bb95da747755e8eb219f2df3d4e488
DIFF: https://github.com/llvm/llvm-project/commit/2a879e6884bb95da747755e8eb219f2df3d4e488.diff
LOG: [APFloat][unittest] Fix -Wsign-compare after D69773
Added:
Modified:
llvm/unittests/ADT/APFloatTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/ADT/APFloatTest.cpp b/llvm/unittests/ADT/APFloatTest.cpp
index 812e657dc74f..e571e04614ae 100644
--- a/llvm/unittests/ADT/APFloatTest.cpp
+++ b/llvm/unittests/ADT/APFloatTest.cpp
@@ -1028,7 +1028,7 @@ TEST(APFloatTest, fromStringSpecials) {
EXPECT_TRUE(F.isInfinity());
EXPECT_EQ(Negative, F.isNegative());
uint64_t PayloadResult = F.bitcastToAPInt().getZExtValue() & PayloadMask;
- EXPECT_EQ(0, PayloadResult);
+ EXPECT_EQ(UINT64_C(0), PayloadResult);
}
}
More information about the llvm-commits
mailing list