Mercurial > vim
changeset 24574:3a3d5ee00574 v8.2.2826
patch 8.2.2826: compiler warnings for int to size_t conversion
Commit: https://github.com/vim/vim/commit/551c1aed65817558ac1ece541c246ea585645807
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 3 18:57:05 2021 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 03 May 2021 19:00:04 +0200 |
parents | 206a2cdcaf8a |
children | 508b3b164d2a |
files | src/map.c src/quickfix.c src/version.c |
diffstat | 3 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/map.c +++ b/src/map.c @@ -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);