summaryrefslogtreecommitdiff
path: root/src/memline.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/memline.c
parent637532b3c0ca41f0de7e90b6f3c0defe06369372 (diff)
downloadvim-git-4b7214ea7834c72188f4a7b0b76b49b81fef7d27.tar.gz
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/memline.c')
-rw-r--r--src/memline.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/memline.c b/src/memline.c
index 9ef1f60b5..89e2e15cb 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -562,7 +562,7 @@ ml_set_crypt_key(
/* Skip data block with negative block number.
* Should not happen, because of the ml_preserve()
* above. Get same block again for next index. */
- ++idx;
+ ++idx;
continue;
}
@@ -3350,7 +3350,7 @@ adjust_text_props_for_delete(
internal_error("no text property below deleted line");
return;
}
- this_props_len = line_size - textlen;
+ this_props_len = line_size - (int)textlen;
}
found = FALSE;
@@ -3489,7 +3489,7 @@ ml_delete_int(buf_T *buf, linenr_T lnum, int message)
if ((long)textlen < line_size)
{
- textprop_save_len = line_size - textlen;
+ textprop_save_len = line_size - (int)textlen;
textprop_save = vim_memsave((char_u *)dp + line_start + textlen,
textprop_save_len);
}
@@ -5379,7 +5379,7 @@ ml_updatechunk(
// the text prop info would also be counted. Go over the
// lines.
for (i = end_idx; i < idx; ++i)
- size += STRLEN((char_u *)dp + (dp->db_index[i] & DB_INDEX_MASK)) + 1;
+ size += (int)STRLEN((char_u *)dp + (dp->db_index[i] & DB_INDEX_MASK)) + 1;
}
else
#endif
@@ -5588,7 +5588,7 @@ ml_find_line_or_offset(buf_T *buf, linenr_T lnum, long *offp)
// lengths.
len = 0;
for (i = start_idx; i <= idx; ++i)
- len += STRLEN((char_u *)dp + ((dp->db_index[i]) & DB_INDEX_MASK)) + 1;
+ len += (int)STRLEN((char_u *)dp + ((dp->db_index[i]) & DB_INDEX_MASK)) + 1;
}
else
#endif