summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-06-17 12:04:03 +0200
committerLinus Groh <mail@linusgroh.de>2022-06-17 11:24:27 +0100
commit2a45d3030250aefd739e6ded94a9020856b6c466 (patch)
tree9b6ef56b3ac9a304e492ccd5f0bf0e001853bbb0
parent0132e494d658762e0b8bdd6cdba317bd3a0612c6 (diff)
downloadserenity-2a45d3030250aefd739e6ded94a9020856b6c466.zip
LibC: Allow parsing numbers right on the cutoff
-rw-r--r--Userland/Libraries/LibC/stdlib.cpp2
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;
}
}