0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.0831: compiler warnings for integer sizes

Problem:    Compiler warnings for integer sizes.
Solution:   Add type casts. (Mike Williams)
This commit is contained in:
Bram Moolenaar
2020-05-27 21:22:14 +02:00
parent 80a20df86a
commit f4b68e9056
3 changed files with 5 additions and 3 deletions

View File

@@ -4230,7 +4230,7 @@ parse_osc(int command, VTermStringFragment frag, void *user)
return 1;
}
mch_memmove((char *)gap->ga_data + gap->ga_len, frag.str, frag.len);
gap->ga_len += frag.len;
gap->ga_len += (int)frag.len;
if (!frag.final)
return 1;