diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-06-17 12:04:03 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-17 11:24:27 +0100 |
commit | 2a45d3030250aefd739e6ded94a9020856b6c466 (patch) | |
tree | 9b6ef56b3ac9a304e492ccd5f0bf0e001853bbb0 | |
parent | 0132e494d658762e0b8bdd6cdba317bd3a0612c6 (diff) | |
download | serenity-2a45d3030250aefd739e6ded94a9020856b6c466.zip |
LibC: Allow parsing numbers right on the cutoff
-rw-r--r-- | Userland/Libraries/LibC/stdlib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/stdlib.cpp b/Userland/Libraries/LibC/stdlib.cpp index 695c9c35e8..bf792f99ea 100644 --- a/Userland/Libraries/LibC/stdlib.cpp +++ b/Userland/Libraries/LibC/stdlib.cpp @@ -133,7 +133,7 @@ private: if (is_below_cutoff) { return true; } else { - return m_num == m_cutoff && digit < m_max_digit_after_cutoff; + return m_num == m_cutoff && digit <= m_max_digit_after_cutoff; } } |