mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
vim-patch:8.2.3573: cannot decide whether to skip test that fails with 64 bit
Problem: Cannot decide whether to skip test that fails with 64 bit ints.
(closes vim/vim#9072)
Solution: Add v:sizeofint, v:sizeoflong and v:sizeofpointer. Improve the
check for multiply overflow.
69b3072d98
Omit v:sizeof{int,long,pointer} as they're only really used for tests.
This commit is contained in:
@@ -3434,7 +3434,8 @@ void do_put(int regname, yankreg_T *reg, int dir, long count, int flags)
|
||||
const long multlen = count * yanklen;
|
||||
|
||||
totlen = (size_t)(int)multlen;
|
||||
if (totlen != (size_t)multlen) {
|
||||
if (totlen != (size_t)multlen || (long)totlen / count != yanklen
|
||||
|| (long)totlen / yanklen != count) {
|
||||
emsg(_(e_resulting_text_too_long));
|
||||
break;
|
||||
} else if (totlen > 0) {
|
||||
|
Reference in New Issue
Block a user