https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124666
--- Comment #2 from anlauf at gcc dot gnu.org ---
I wonder if adding parentheses like
value = 10 * value + (c - '0');
also helps to avoid wrapping in corner cases.
anlauf at gcc dot gnu.org via Gcc-bugs Fri, 27 Mar 2026 12:35:36 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124666
--- Comment #2 from anlauf at gcc dot gnu.org ---
I wonder if adding parentheses like
value = 10 * value + (c - '0');
also helps to avoid wrapping in corner cases.