[PATCH] D129567: [Fixed Point] Fix C++20 compilation error
Antonio Frighetto via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 13 03:52:55 PDT 2022
antoniofrighetto updated this revision to Diff 444210.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129567/new/
https://reviews.llvm.org/D129567
Files:
llvm/unittests/ADT/APFixedPointTest.cpp
Index: llvm/unittests/ADT/APFixedPointTest.cpp
===================================================================
--- llvm/unittests/ADT/APFixedPointTest.cpp
+++ llvm/unittests/ADT/APFixedPointTest.cpp
@@ -220,11 +220,13 @@
}
void CheckIntPartMin(const FixedPointSemantics &Sema, int64_t Expected) {
- ASSERT_EQ(APFixedPoint::getMin(Sema).getIntPart(), Expected);
+ EXPECT_TRUE(APSInt::compareValues(APFixedPoint::getMin(Sema).getIntPart(),
+ APSInt::get(Expected)) == 0);
}
void CheckIntPartMax(const FixedPointSemantics &Sema, uint64_t Expected) {
- ASSERT_EQ(APFixedPoint::getMax(Sema).getIntPart(), Expected);
+ EXPECT_TRUE(APSInt::compareValues(APFixedPoint::getMax(Sema).getIntPart(),
+ APSInt::getUnsigned(Expected)) == 0);
}
TEST(FixedPoint, getIntPart) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129567.444210.patch
Type: text/x-patch
Size: 851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220713/57ed92dc/attachment.bin>
More information about the llvm-commits
mailing list