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
commit 2a45d30302
Notes: sideshowbarker 2024-07-17 10:07:28 +09:00

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