diff options
author | Johan Klokkhammer Helsing <johanhelsing@gmail.com> | 2015-11-04 02:31:17 +0100 |
---|---|---|
committer | Johan Klokkhammer Helsing <johanhelsing@gmail.com> | 2015-12-13 13:06:48 +0100 |
commit | c3ac16cfebde54c32b6d900743b413d460523dfb (patch) | |
tree | 7bbf1931c6f28fd12a819f6b10a002d21c04e73a | |
parent | 3b472e55b327dc1c4fc034c665398e70d0f7dc77 (diff) | |
download | rneovim-c3ac16cfebde54c32b6d900743b413d460523dfb.tar.gz rneovim-c3ac16cfebde54c32b6d900743b413d460523dfb.tar.bz2 rneovim-c3ac16cfebde54c32b6d900743b413d460523dfb.zip |
Solve warnings.
-rw-r--r-- | src/nvim/indent_c.c | 4 | ||||
-rw-r--r-- | src/nvim/search.c | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/nvim/indent_c.c b/src/nvim/indent_c.c index bfbd30484a..59845552e1 100644 --- a/src/nvim/indent_c.c +++ b/src/nvim/indent_c.c @@ -98,7 +98,7 @@ static pos_T *find_start_rawstring(int ind_maxcomment) pos_T *pos; char_u *line; char_u *p; - int cur_maxcomment = ind_maxcomment; + long cur_maxcomment = ind_maxcomment; for (;;) { @@ -168,7 +168,7 @@ static char_u *skip_string(char_u *p) if (paren != NULL) { - size_t delim_len = paren - delim; + long delim_len = paren - delim; for (p += 3; *p; ++p) if (p[0] == ')' && STRNCMP(p + 1, delim, delim_len) == 0 diff --git a/src/nvim/search.c b/src/nvim/search.c index fa078dfcbf..7dd3a5d219 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -1444,13 +1444,9 @@ static int check_prevcol(char_u *linep, int col, int ch, int *prevcol) /* * Raw string start is found at linep[startpos.col - 1]. - * Return TRUE if the matching end can be found between startpos and endpos. + * Return true if the matching end can be found between startpos and endpos. */ - static int -find_rawstring_end(linep, startpos, endpos) - char_u *linep; - pos_T *startpos; - pos_T *endpos; +static int find_rawstring_end(char_u *linep, pos_T *startpos, pos_T *endpos) { char_u *p; char_u *delim_copy; |