0
0
mirror of https://github.com/vim/vim.git synced 2025-10-08 06:04:08 -04:00

patch 8.2.2826: compiler warnings for int to size_t conversion

Problem:    Compiler warnings for int to size_t conversion. (Randall W.
            Morris)
Solution:   Add type casts.
This commit is contained in:
Bram Moolenaar
2021-05-03 18:57:05 +02:00
parent 2bf6034e5c
commit 551c1aed65
3 changed files with 4 additions and 2 deletions

View File

@@ -1552,7 +1552,7 @@ check_abbr(
escaped = vim_strsave_escape_csi(tb + j);
if (escaped != NULL)
{
newlen = STRLEN(escaped);
newlen = (int)STRLEN(escaped);
mch_memmove(tb + j, escaped, newlen);
j += newlen;
vim_free(escaped);