summaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-17 19:12:03 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-17 19:12:03 +0100
commit109ef128bd6efc8e1fb91a2a51357fcb19897698 (patch)
tree2e2161df1e7647490c3bdaa81707d8fa46f5f18e /src/memline.c
parent17e04781f26c24769e202351c194ee252927eee1 (diff)
downloadvim-git-109ef128bd6efc8e1fb91a2a51357fcb19897698.tar.gz
patch 8.2.0124: compiler warnings for variable typesv8.2.0124
Problem: Compiler warnings for variable types. Solution: Change type, add type cast. (Mike Williams)
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/memline.c b/src/memline.c
index 2ac47af11..2c4153946 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -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;