aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/indent_c.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-01-13 07:40:49 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-01-19 09:55:57 +0100
commit32c7971b2a6fca6fc96f250790ccd35f4a1df854 (patch)
treec3fdb67a1edf485daf5ca1f58225dd8f90320d74 /src/nvim/indent_c.c
parente40946a5be2ce11156fc7494ec81040d3cde4809 (diff)
downloadrneovim-32c7971b2a6fca6fc96f250790ccd35f4a1df854.tar.gz
rneovim-32c7971b2a6fca6fc96f250790ccd35f4a1df854.tar.bz2
rneovim-32c7971b2a6fca6fc96f250790ccd35f4a1df854.zip
win: fix warnings
Diffstat (limited to 'src/nvim/indent_c.c')
-rw-r--r--src/nvim/indent_c.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/indent_c.c b/src/nvim/indent_c.c
index 6f03cf6037..7b758b4dac 100644
--- a/src/nvim/indent_c.c
+++ b/src/nvim/indent_c.c
@@ -173,9 +173,8 @@ static char_u *skip_string(char_u *p)
char_u *delim = p + 2;
char_u *paren = vim_strchr(delim, '(');
- if (paren != NULL)
- {
- long delim_len = paren - delim;
+ if (paren != NULL) {
+ ptrdiff_t delim_len = paren - delim;
for (p += 3; *p; ++p)
if (p[0] == ')' && STRNCMP(p + 1, delim, delim_len) == 0