summaryrefslogtreecommitdiffstats
path: root/src/textprop.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-03 21:55:32 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-03 21:55:32 +0100
commit4b7214ea7834c72188f4a7b0b76b49b81fef7d27 (patch)
treecc04d33a89095b2fa0b80b6cac7e16b0d28bd382 /src/textprop.c
parent637532b3c0ca41f0de7e90b6f3c0defe06369372 (diff)
patch 8.1.0684: warnings from 64-bit compilerv8.1.0684
Problem: Warnings from 64-bit compiler. Solution: Add type casts. (Mike Williams)
Diffstat (limited to 'src/textprop.c')
-rw-r--r--src/textprop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textprop.c b/src/textprop.c
index bc41e8fe67..578f6e9348 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -262,9 +262,9 @@ f_prop_add(typval_T *argvars, typval_T *rettv UNUSED)
if (lnum == end_lnum)
length = end_col - col;
else
- length = textlen - col + 1;
+ length = (int)textlen - col + 1;
if (length > (long)textlen)
- length = textlen; // can include the end-of-line
+ length = (int)textlen; // can include the end-of-line
if (length < 0)
length = 0; // zero-width property
@@ -972,7 +972,7 @@ adjust_prop_columns(
if (dirty)
{
curbuf->b_ml.ml_flags |= ML_LINE_DIRTY;
- curbuf->b_ml.ml_line_len = textlen + wi * sizeof(textprop_T);
+ curbuf->b_ml.ml_line_len = (int)textlen + wi * sizeof(textprop_T);
}
}