Skip to content

Commit f3598e8

Browse files
committed
[ADT] Fix another "oops" spotted by eddyb and reported in IRC.
This test pretty clearly should be calling 'maxnum' here. =] llvm-svn: 307519
1 parent 766233b commit f3598e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/ADT/APFloatTest.cpp

+1-1
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)