diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-04-02 09:39:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-02 01:39:12 +0000 |
commit | e5ddf7ae7dbd7dce42f33c275b4f9a86186c17b6 (patch) | |
tree | 0dfd26585217eb1875420e426e2c6e0188621ee3 | |
parent | 9b239a6a86ed0caaaf7522cfc600da4b35d94d04 (diff) | |
download | rneovim-e5ddf7ae7dbd7dce42f33c275b4f9a86186c17b6.tar.gz rneovim-e5ddf7ae7dbd7dce42f33c275b4f9a86186c17b6.tar.bz2 rneovim-e5ddf7ae7dbd7dce42f33c275b4f9a86186c17b6.zip |
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
https://github.com/vim/vim/commit/7b6add0b4a694d421a1eb9c9017698ccbedde41c
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
-rw-r--r-- | src/nvim/change.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c index cf7d5dfc4b..cc8acb466e 100644 --- a/src/nvim/change.c +++ b/src/nvim/change.c @@ -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. |