Merge pull request #14492 from seandewar/gcc-conv-warn

fix(gcc): compile warning in nvim_buf_set_extmark
This commit is contained in:
Björn Linse 2021-05-05 07:04:43 +02:00 committed by GitHub
commit 1c2e504d5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1691,7 +1691,8 @@ Integer nvim_buf_set_extmark(Buffer buffer, Integer ns_id,
if (decor.virt_text_pos == kVTRightAlign) {
decor.col = 0;
for (size_t i = 0; i < kv_size(decor.virt_text); i++) {
decor.col += mb_string2cells((char_u *)kv_A(decor.virt_text, i).text);
decor.col
+= (int)mb_string2cells((char_u *)kv_A(decor.virt_text, i).text);
}
}