Browse Source

LibC: Fix typo in fenv.h

`FE_TOWARDSZERO` is actually spelled `FE_TOWARDZERO` (without the 'S')
Mițca Dumitru 4 years ago
parent
commit
a13e8d49cf
2 changed files with 2 additions and 2 deletions
  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);