mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.1.1384: using "int" for alloc() often results in compiler warnings
Problem: Using "int" for alloc() often results in compiler warnings. Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim only works with 32 bit ints anyway.964b3746b9
N/A commits: vim-patch:8.1.0228: dropping files is ignored while Vim is busy Problem: Dropping files is ignored while Vim is busy. Solution: Postpone the effect of dropping files until it's safe.92d147be95
vim-patch:8.2.3040: GUI: dropping files not tested Problem: GUI: dropping files not tested. Solution: Add test_gui_drop_files() and tests. (Yegappan Lakshmanan, closes vim/vim#8434)18d46587b9
This commit is contained in:
parent
120a881630
commit
c86fb824e0
@ -625,7 +625,7 @@ void ins_char_bytes(char_u *buf, size_t charlen)
|
||||
}
|
||||
}
|
||||
|
||||
char_u *newp = xmalloc((size_t)(linelen + newlen - oldlen));
|
||||
char_u *newp = xmalloc(linelen + newlen - oldlen);
|
||||
|
||||
// Copy bytes before the cursor.
|
||||
if (col > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user