mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0967: unnecessary type casts for vim_strnsave()
Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
This commit is contained in:
@@ -1435,7 +1435,7 @@ PerlIOVim_write(pTHX_ PerlIO *f, const void *vbuf, Size_t count)
|
||||
char_u *str;
|
||||
PerlIOVim * s = PerlIOSelf(f, PerlIOVim);
|
||||
|
||||
str = vim_strnsave((char_u *)vbuf, (int)count);
|
||||
str = vim_strnsave((char_u *)vbuf, count);
|
||||
if (str == NULL)
|
||||
return 0;
|
||||
msg_split((char_u *)str, s->attr);
|
||||
|
Reference in New Issue
Block a user