0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0124: compiler warnings for variable types

Problem:    Compiler warnings for variable types.
Solution:   Change type, add type cast. (Mike Williams)
This commit is contained in:
Bram Moolenaar
2020-01-17 19:12:03 +01:00
parent 17e04781f2
commit 109ef128bd
2 changed files with 5 additions and 3 deletions

View File

@@ -5753,8 +5753,8 @@ ml_find_line_or_offset(buf_T *buf, linenr_T lnum, long *offp)
else
{
#ifdef FEAT_PROP_POPUP
long textprop_total = 0;
long textprop_size = 0;
size_t textprop_total = 0;
size_t textprop_size = 0;
char_u *l1, *l2;
#endif
@@ -5774,7 +5774,7 @@ ml_find_line_or_offset(buf_T *buf, linenr_T lnum, long *offp)
if (!(offset >= size
+ text_end - (int)((dp->db_index[idx]) & DB_INDEX_MASK)
#ifdef FEAT_PROP_POPUP
- textprop_total - textprop_size
- (long)(textprop_total - textprop_size)
#endif
+ ffdos))
break;

View File

@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
124,
/**/
123,
/**/