diff options
author | Po Lu <luangruo@yahoo.com> | 2023-05-18 09:04:57 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2023-05-18 09:04:57 +0800 |
commit | 074c0268fd32d6527e124cff386bb6b15cf90017 (patch) | |
tree | 62111c3c70d46a738f15514e988a707409ca45f4 /src/regex-emacs.c | |
parent | db48eff8cf4a88393c0209f663ca194ee37fa747 (diff) | |
parent | 5ef169ed701fa4f850fdca5563cdd468207d5d4f (diff) | |
download | emacs-feature/android.tar.gz |
Merge remote-tracking branch 'origin/master' into feature/androidfeature/android
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: |