commit | 551c1aed65817558ac1ece541c246ea585645807 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon May 03 18:57:05 2021 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon May 03 18:57:05 2021 +0200 |
tree | 347fa3f99a9a053c0c1715778df5e7d022de4511 | |
parent | 2bf6034e5caf36b319148f46ba9a12e36c3bd41d [diff] [blame] |
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.
diff --git a/src/map.c b/src/map.c index 31742c1..2e792fe 100644 --- a/src/map.c +++ b/src/map.c
@@ -1552,7 +1552,7 @@ 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);