[libc-commits] [libc] [libc][NFC] Fix a typo in test/src/stdfix/RoundTest.h. (PR #84411)

via libc-commits libc-commits at lists.llvm.org
Thu Mar 7 16:53:43 PST 2024


https://github.com/lntue created https://github.com/llvm/llvm-project/pull/84411

None

>From e0405ed9ffebd4fefdb316405fc5bfb5dc8b5905 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue.h at gmail.com>
Date: Fri, 8 Mar 2024 00:51:53 +0000
Subject: [PATCH] [libc][NFC] Fix a typo in test/src/stdfix/RoundTest.h.

---
 libc/test/src/stdfix/RoundTest.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/test/src/stdfix/RoundTest.h b/libc/test/src/stdfix/RoundTest.h
index 06343addbef20e..d3ae04db9749ba 100644
--- a/libc/test/src/stdfix/RoundTest.h
+++ b/libc/test/src/stdfix/RoundTest.h
@@ -28,7 +28,7 @@ template <typename T> class RoundTest : public LIBC_NAMESPACE::testing::Test {
 
   void testSpecialNumbers(RoundFunc func) {
     EXPECT_EQ(zero, func(zero, FXRep::FRACTION_LEN - 5));
-    EXPECT_EQ(max, func(min, 0));
+    EXPECT_EQ(min, func(min, 0));
     EXPECT_EQ(max, func(max, FXRep::FRACTION_LEN));
 
     EXPECT_EQ(one, func(half, 0));



More information about the libc-commits mailing list