Patch 8.1.1235
Problem: Compiler warnings for using STRLEN() value.
Solution: Cast to int. (Christian Brabandt, Mike Williams)
Files: src/tag.c
*** ../vim-8.1.1234/src/tag.c 2019-04-28 18:04:56.062492159 +0200
--- src/tag.c 2019-04-29 19:43:43.182061855 +0200
***************
*** 1391,1397 ****
if (tv->v_type != VAR_STRING || tv->vval.v_string == NULL)
continue;
! len += STRLEN(tv->vval.v_string) + 1; // Space for "\tVALUE"
if (!STRCMP(dict_key, "name"))
{
res_name = tv->vval.v_string;
--- 1391,1397 ----
if (tv->v_type != VAR_STRING || tv->vval.v_string == NULL)
continue;
! len += (int)STRLEN(tv->vval.v_string) + 1; // Space for "\tVALUE"
if (!STRCMP(dict_key, "name"))
{
res_name = tv->vval.v_string;
***************
*** 1415,1421 ****
}
// Other elements will be stored as "\tKEY:VALUE"
// Allocate space for the key and the colon
! len += STRLEN(dict_key) + 1;
}
if (has_extra)
--- 1415,1421 ----
}
// Other elements will be stored as "\tKEY:VALUE"
// Allocate space for the key and the colon
! len += (int)STRLEN(dict_key) + 1;
}
if (has_extra)
*** ../vim-8.1.1234/src/version.c 2019-04-28 23:07:13.572480525 +0200
--- src/version.c 2019-04-29 19:46:15.639507222 +0200
***************
*** 769,770 ****
--- 769,772 ----
{ /* Add new patch number below this line */
+ /**/
+ 1235,
/**/
--
"It's so simple to be wise. Just think of something stupid to say
and then don't say it." -- Sam Levenson
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.