fix(gcc): compile warning in nvim_buf_set_extmark

This commit is contained in:
Sean Dewar 2021-05-05 02:11:28 +01:00
parent 4ad30f775e
commit b274b9887a
No known key found for this signature in database
GPG Key ID: 08CC2C83AD41B581

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);
}
}