diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-08 20:14:35 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-08 20:14:35 +0100 |
commit | 8aef43b66cf280c79a75d81f43ce5223b9044e63 (patch) | |
tree | b9c130e77c86b18c7da28805d654734c35aebee9 /src/textprop.c | |
parent | b589f95b38ddd779d7e696abb0ea011dc92ea903 (diff) | |
download | vim-git-8aef43b66cf280c79a75d81f43ce5223b9044e63.tar.gz |
patch 8.1.0703: compiler warnings with 64-bit compilerv8.1.0703
Problem: Compiler warnings with 64-bit compiler.
Solution: Change types, add type casts. (Mike Williams)
Diffstat (limited to 'src/textprop.c')
-rw-r--r-- | src/textprop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/textprop.c b/src/textprop.c index 8b7d3f15e..389bd41c1 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -357,12 +357,12 @@ get_text_props(buf_T *buf, linenr_T lnum, char_u **props, int will_change) static void set_text_props(linenr_T lnum, char_u *props, int len) { - char_u *text; - char_u *newtext; - size_t textlen; + char_u *text; + char_u *newtext; + int textlen; text = ml_get(lnum); - textlen = STRLEN(text) + 1; + textlen = (int)STRLEN(text) + 1; newtext = alloc(textlen + len); if (newtext == NULL) return; |