浏览代码

LibC: Fix typo in fenv.h

`FE_TOWARDSZERO` is actually spelled `FE_TOWARDZERO` (without the 'S')
Mițca Dumitru 4 年之前
父节点
当前提交
a13e8d49cf
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Userland/Libraries/LibC/fenv.cpp
  2. 1 1
      Userland/Libraries/LibC/fenv.h

+ 1 - 1
Userland/Libraries/LibC/fenv.cpp

@@ -157,7 +157,7 @@ int fegetround()
 
 int fesetround(int rounding_mode)
 {
-    if (rounding_mode < FE_TONEAREST || rounding_mode > FE_TOWARDSZERO)
+    if (rounding_mode < FE_TONEAREST || rounding_mode > FE_TOWARDZERO)
         return 1;
 
     auto control_word = read_control_word();

+ 1 - 1
Userland/Libraries/LibC/fenv.h

@@ -77,7 +77,7 @@ int feraiseexcept(int exceptions);
 #define FE_TONEAREST 0
 #define FE_DOWNWARD 1
 #define FE_UPWARD 2
-#define FE_TOWARDSZERO 3
+#define FE_TOWARDZERO 3
 
 int fesetround(int round);
 int fegetround(void);