]> granicus.if.org Git - llvm/commitdiff
[ADT] Fix another "oops" spotted by eddyb and reported in IRC.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 10 Jul 2017 05:41:14 +0000 (05:41 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 10 Jul 2017 05:41:14 +0000 (05:41 +0000)
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

unittests/ADT/APFloatTest.cpp

index ec705308e3e128c091667b14ff519385554bf42d..69da089f172b464fba89dd05fc86f0a7222c11b8 100644 (file)
@@ -552,7 +552,7 @@ TEST(APFloatTest, MaxNum) {
   EXPECT_EQ(2.0, maxnum(f1, f2).convertToDouble());
   EXPECT_EQ(2.0, maxnum(f2, f1).convertToDouble());
   EXPECT_EQ(1.0, maxnum(f1, nan).convertToDouble());
-  EXPECT_EQ(1.0, minnum(nan, f1).convertToDouble());
+  EXPECT_EQ(1.0, maxnum(nan, f1).convertToDouble());
 }
 
 TEST(APFloatTest, Denormal) {