diff options
Diffstat (limited to 'src/regex-emacs.c')
-rw-r--r-- | src/regex-emacs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/regex-emacs.c b/src/regex-emacs.c index 746779490ad..e3237cd425a 100644 --- a/src/regex-emacs.c +++ b/src/regex-emacs.c @@ -2202,9 +2202,8 @@ regex_compile (re_char *pattern, ptrdiff_t size, FALLTHROUGH; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': - if (INT_MULTIPLY_WRAPV (regnum, 10, ®num) - || INT_ADD_WRAPV (regnum, c - '0', - ®num)) + if (ckd_mul (®num, regnum, 10) + || ckd_add (®num, regnum, c - '0')) FREE_STACK_RETURN (REG_ESIZE); break; default: |