Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 23efab2

Browse files
committed
[ADT] Fix another "oops" spotted by eddyb and reported in IRC.
This test pretty clearly should be calling 'maxnum' here. =] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307519 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent cb16061 commit 23efab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittests/ADT/APFloatTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ TEST(APFloatTest, MaxNum) {
552552
EXPECT_EQ(2.0, maxnum(f1, f2).convertToDouble());
553553
EXPECT_EQ(2.0, maxnum(f2, f1).convertToDouble());
554554
EXPECT_EQ(1.0, maxnum(f1, nan).convertToDouble());
555-
EXPECT_EQ(1.0, minnum(nan, f1).convertToDouble());
555+
EXPECT_EQ(1.0, maxnum(nan, f1).convertToDouble());
556556
}
557557

558558
TEST(APFloatTest, Denormal) {

0 commit comments

Comments
 (0)