mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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.
This commit is contained in:
parent
2bf6034e5c
commit
551c1aed65
@ -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);
|
||||
|
@ -5921,7 +5921,7 @@ vgr_match_buflines(
|
||||
int found_match = FALSE;
|
||||
long lnum;
|
||||
colnr_T col;
|
||||
int pat_len = STRLEN(spat);
|
||||
int pat_len = (int)STRLEN(spat);
|
||||
|
||||
for (lnum = 1; lnum <= buf->b_ml.ml_line_count && *tomatch > 0; ++lnum)
|
||||
{
|
||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2826,
|
||||
/**/
|
||||
2825,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user