Patch 8.2.2826
Problem: Compiler warnings for int to size_t conversion. (Randall W.
Morris)
Solution: Add type casts.
Files: src/map.c, src/quickfix.c
*** ../vim-8.2.2825/src/map.c 2021-04-30 19:43:06.618062735 +0200
--- src/map.c 2021-05-03 18:53:22.344659976 +0200
***************
*** 1552,1558 ****
escaped = vim_strsave_escape_csi(tb + j);
if (escaped != NULL)
{
! newlen = STRLEN(escaped);
mch_memmove(tb + j, escaped, newlen);
j += newlen;
vim_free(escaped);
--- 1552,1558 ----
escaped = vim_strsave_escape_csi(tb + j);
if (escaped != NULL)
{
! newlen = (int)STRLEN(escaped);
mch_memmove(tb + j, escaped, newlen);
j += newlen;
vim_free(escaped);
*** ../vim-8.2.2825/src/quickfix.c 2021-04-26 21:14:12.713924760 +0200
--- src/quickfix.c 2021-05-03 18:54:35.148469803 +0200
***************
*** 5921,5927 ****
int found_match = FALSE;
long lnum;
colnr_T col;
! int pat_len = STRLEN(spat);
for (lnum = 1; lnum <= buf->b_ml.ml_line_count && *tomatch > 0; ++lnum)
{
--- 5921,5927 ----
int found_match = FALSE;
long lnum;
colnr_T col;
! int pat_len = (int)STRLEN(spat);
for (lnum = 1; lnum <= buf->b_ml.ml_line_count && *tomatch > 0; ++lnum)
{
*** ../vim-8.2.2825/src/version.c 2021-05-02 20:16:19.991169536 +0200
--- src/version.c 2021-05-03 18:54:56.040414295 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2826,
/**/
--
hundred-and-one symptoms of being an internet addict:
220. Your wife asks for sex and you tell her where to find you on IRC.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202105031659.143Gxg7u333425%40masaka.moolenaar.net.