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/fns.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/fns.c')
-rw-r--r-- | src/fns.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fns.c b/src/fns.c index 7cb73f8375f..1ad6eb57de4 100644 --- a/src/fns.c +++ b/src/fns.c @@ -2938,8 +2938,7 @@ ARRAY is a vector, string, char-table, or bool-vector. */) else { ptrdiff_t product; - if (INT_MULTIPLY_WRAPV (size, len, &product) - || product != size_byte) + if (ckd_mul (&product, size, len) || product != size_byte) error ("Attempt to change byte length of a string"); for (idx = 0; idx < size_byte; idx++) *p++ = str[idx % len]; |