diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-29 19:47:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-29 19:47:22 +0200 |
commit | c0af78fa0869d39314336faef36239f62f09e148 (patch) | |
tree | 96400e4a5afcba8e62caf9e53ba58866550cef04 /src/tag.c | |
parent | 701df4eb64ae9945c63f83621b54aa69e1336a79 (diff) | |
download | vim-git-c0af78fa0869d39314336faef36239f62f09e148.tar.gz |
patch 8.1.1235: compiler warnings for using STRLEN() valuev8.1.1235
Problem: Compiler warnings for using STRLEN() value.
Solution: Cast to int. (Christian Brabandt, Mike Williams)
Diffstat (limited to 'src/tag.c')
-rw-r--r-- | src/tag.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |