mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:9.1.1266: MS-Windows: type conversion warnings (#33264)
Problem: MS-Windows: type conversion warnings
Solution: cast the variables (Yegappan Lakshmanan)
closes: vim/vim#17027
7b6add0b4a
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -799,7 +799,7 @@ void ins_char_bytes(char *buf, size_t charlen)
|
||||
|
||||
if (!p_ri || (State & REPLACE_FLAG)) {
|
||||
// Normal insert: move cursor right
|
||||
curwin->w_cursor.col += (int)charlen;
|
||||
curwin->w_cursor.col += (colnr_T)charlen;
|
||||
}
|
||||
// TODO(Bram): should try to update w_row here, to avoid recomputing it later.
|
||||
}
|
||||
@@ -829,7 +829,7 @@ void ins_str(char *s, size_t slen)
|
||||
memmove(newp + col + slen, oldp + col, (size_t)bytes);
|
||||
ml_replace(lnum, newp, false);
|
||||
inserted_bytes(lnum, col, 0, (int)slen);
|
||||
curwin->w_cursor.col += (int)slen;
|
||||
curwin->w_cursor.col += (colnr_T)slen;
|
||||
}
|
||||
|
||||
// Delete one character under the cursor.
|
||||
|
Reference in New Issue
Block a user