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/lread.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/lread.c')
-rw-r--r-- | src/lread.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lread.c b/src/lread.c index 8634fd7fc37..3ac5d43a839 100644 --- a/src/lread.c +++ b/src/lread.c @@ -3621,8 +3621,8 @@ read_bool_vector (Lisp_Object readcharfun) invalid_syntax ("#&", readcharfun); break; } - if (INT_MULTIPLY_WRAPV (length, 10, &length) - || INT_ADD_WRAPV (length, c - '0', &length)) + if (ckd_mul (&length, length, 10) + || ckd_add (&length, length, c - '0')) invalid_syntax ("#&", readcharfun); } @@ -3667,8 +3667,8 @@ skip_lazy_string (Lisp_Object readcharfun) UNREAD (c); break; } - if (INT_MULTIPLY_WRAPV (nskip, 10, &nskip) - || INT_ADD_WRAPV (nskip, c - '0', &nskip)) + if (ckd_mul (&nskip, nskip, 10) + || ckd_add (&nskip, nskip, c - '0')) invalid_syntax ("#@", readcharfun); digits++; if (digits == 2 && nskip == 0) @@ -4232,8 +4232,8 @@ read0 (Lisp_Object readcharfun, bool locate_syms) c = READCHAR; if (c < '0' || c > '9') break; - if (INT_MULTIPLY_WRAPV (n, 10, &n) - || INT_ADD_WRAPV (n, c - '0', &n)) + if (ckd_mul (&n, n, 10) + || ckd_add (&n, n, c - '0')) invalid_syntax ("#", readcharfun); } if (c == 'r' || c == 'R') |