aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-17 22:36:30 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-17 22:38:10 -0400
commita00247e147dc60d00cda4f8aa5380bb70fe0e272 (patch)
tree5be1e54043d11cb8a6246d7b0599a82f937a0f3d
parent8de87c7b1ca0aeff60c9a6cdacbcc7fba438dc2e (diff)
downloadrneovim-a00247e147dc60d00cda4f8aa5380bb70fe0e272.tar.gz
rneovim-a00247e147dc60d00cda4f8aa5380bb70fe0e272.tar.bz2
rneovim-a00247e147dc60d00cda4f8aa5380bb70fe0e272.zip
vim-patch:8.0.1428: compiler warning on 64 bit MS-Windows system
Problem: Compiler warning on 64 bit MS-Windows system. Solution: Change type from "int" to "size_t". (Mike Williams) https://github.com/vim/vim/commit/200ea8ffaa90e1ccc156b24ee097be87acdd5214
-rw-r--r--src/nvim/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 0bb704489b..92c35ad3a0 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -1787,7 +1787,7 @@ static int command_line_not_changed(CommandLineState *s)
/// as a trailing \|, which can happen while typing a pattern.
static int empty_pattern(char_u *p)
{
- int n = STRLEN(p);
+ size_t n = STRLEN(p);
// remove trailing \v and the like
while (n >= 2 && p[n - 2] == '\\'