diff options
Diffstat (limited to 'src/doprnt.c')
-rw-r--r-- | src/doprnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doprnt.c b/src/doprnt.c index 3ebb957e9f2..e8911fad252 100644 --- a/src/doprnt.c +++ b/src/doprnt.c @@ -134,8 +134,8 @@ parse_format_integer (char const *fmt, int *value) bool overflow = false; for (; '0' <= *fmt && *fmt <= '9'; fmt++) { - overflow |= INT_MULTIPLY_WRAPV (n, 10, &n); - overflow |= INT_ADD_WRAPV (n, *fmt - '0', &n); + overflow |= ckd_mul (&n, n, 10); + overflow |= ckd_add (&n, n, *fmt - '0'); } if (overflow || min (PTRDIFF_MAX, SIZE_MAX) - SIZE_BOUND_EXTRA < n) error ("Format width or precision too large"); |