1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

LibC: Allow parsing numbers right on the cutoff

This commit is contained in:
Tim Schumacher 2022-06-17 12:04:03 +02:00 committed by Linus Groh
parent 0132e494d6
commit 2a45d30302

View file

@ -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;
}
}