mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -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:
@@ -1810,7 +1810,7 @@ menu_text(char_u *str, int *mnemonic, char_u **actext)
|
||||
{
|
||||
if (actext != NULL)
|
||||
*actext = vim_strsave(p + 1);
|
||||
text = vim_strnsave(str, (int)(p - str));
|
||||
text = vim_strnsave(str, p - str);
|
||||
}
|
||||
else
|
||||
text = vim_strsave(str);
|
||||
@@ -2716,7 +2716,7 @@ ex_menutranslate(exarg_T *eap UNUSED)
|
||||
if (from != NULL)
|
||||
{
|
||||
from_noamp = menu_text(from, NULL, NULL);
|
||||
to = vim_strnsave(to, (int)(arg - to));
|
||||
to = vim_strnsave(to, arg - to);
|
||||
if (from_noamp != NULL && to != NULL)
|
||||
{
|
||||
menu_translate_tab_and_shift(from);
|
||||
|
Reference in New Issue
Block a user