mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
refactor: reduce number of explicit char casts (#16077)
* refactor: reduce number of explicit char casts
This commit is contained in:
@@ -569,7 +569,7 @@ wingotofile:
|
||||
|
||||
static void cmd_with_count(char *cmd, char_u *bufp, size_t bufsize, int64_t Prenum)
|
||||
{
|
||||
size_t len = xstrlcpy((char *)bufp, cmd, bufsize);
|
||||
size_t len = STRLCPY(bufp, cmd, bufsize);
|
||||
|
||||
if (Prenum > 0 && len < bufsize) {
|
||||
vim_snprintf((char *)bufp + len, bufsize - len, "%" PRId64, Prenum);
|
||||
|
Reference in New Issue
Block a user