aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVVKot <volodymyr.kot.ua@gmail.com>2021-12-19 19:56:17 +0000
committerVVKot <volodymyr.kot.ua@gmail.com>2021-12-20 05:30:15 +0000
commit26ced79c3bf415433e00d3f555e02e679ddb0fa1 (patch)
tree22e0b0a2ad4246992d192fb3db5e8008817371c3
parentabdf3a8128b78fb98ee944bc5d3086c680d779ed (diff)
downloadrneovim-26ced79c3bf415433e00d3f555e02e679ddb0fa1.tar.gz
rneovim-26ced79c3bf415433e00d3f555e02e679ddb0fa1.tar.bz2
rneovim-26ced79c3bf415433e00d3f555e02e679ddb0fa1.zip
vim-patch:8.1.0040: warnings from 64-bit compiler
Problem: Warnings from 64-bit compiler. Solution: Add type casts. (Mike Williams) https://github.com/vim/vim/commit/e31e256ba1769a3a3ed7840d5cc9a01ab058b8bc
-rw-r--r--src/nvim/edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 2135d0bcd2..5b63ff5648 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -1685,7 +1685,7 @@ static void init_prompt(int cmdchar_todo)
// Insert always starts after the prompt, allow editing text after it.
if (Insstart_orig.lnum != curwin->w_cursor.lnum || Insstart_orig.col != (colnr_T)STRLEN(prompt)) {
Insstart.lnum = curwin->w_cursor.lnum;
- Insstart.col = STRLEN(prompt);
+ Insstart.col = (colnr_T)STRLEN(prompt);
Insstart_orig = Insstart;
Insstart_textlen = Insstart.col;
Insstart_blank_vcol = MAXCOL;
@@ -1696,7 +1696,7 @@ static void init_prompt(int cmdchar_todo)
coladvance(MAXCOL);
}
if (curwin->w_cursor.col < (colnr_T)STRLEN(prompt)) {
- curwin->w_cursor.col = STRLEN(prompt);
+ curwin->w_cursor.col = (colnr_T)STRLEN(prompt);
}
// Make sure the cursor is in a valid position.
check_cursor();