Mercurial > vim
changeset 16461:826ad48af5e3 v8.1.1235
patch 8.1.1235: compiler warnings for using STRLEN() value
commit https://github.com/vim/vim/commit/c0af78fa0869d39314336faef36239f62f09e148
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 29 19:47:22 2019 +0200
patch 8.1.1235: compiler warnings for using STRLEN() value
Problem: Compiler warnings for using STRLEN() value.
Solution: Cast to int. (Christian Brabandt, Mike Williams)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Apr 2019 20:00:08 +0200 |
parents | 676ccae494ce |
children | 5abac442ef23 |
files | src/tag.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tag.c +++ b/src/tag.c @@ -1391,7 +1391,7 @@ find_tagfunc_tags( if (tv->v_type != VAR_STRING || tv->vval.v_string == NULL) continue; - len += STRLEN(tv->vval.v_string) + 1; // Space for "\tVALUE" + len += (int)STRLEN(tv->vval.v_string) + 1; // Space for "\tVALUE" if (!STRCMP(dict_key, "name")) { res_name = tv->vval.v_string; @@ -1415,7 +1415,7 @@ find_tagfunc_tags( } // Other elements will be stored as "\tKEY:VALUE" // Allocate space for the key and the colon - len += STRLEN(dict_key) + 1; + len += (int)STRLEN(dict_key) + 1; } if (has_extra)