Mercurial > vim
comparison src/search.c @ 13762:9de2b25932eb v8.0.1753
patch 8.0.1753: various warnings from a static analyser
commit https://github.com/vim/vim/commit/1c17ffa4611f4efe68c61f7cdd9ed692a866ba75
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 24 15:19:04 2018 +0200
patch 8.0.1753: various warnings from a static analyser
Problem: Various warnings from a static analyser
Solution: Add type casts, remove unneeded conditions. (Christian Brabandt,
closes #2770)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Apr 2018 15:30:08 +0200 |
parents | 69517d67421f |
children | 0e9b2971d7c3 |
comparison
equal
deleted
inserted
replaced
13761:ddd0ad66922b | 13762:9de2b25932eb |
---|---|
4069 count = 1; | 4069 count = 1; |
4070 curwin->w_cursor = start_pos; | 4070 curwin->w_cursor = start_pos; |
4071 goto again; | 4071 goto again; |
4072 } | 4072 } |
4073 | 4073 |
4074 if (do_include || r < 1) | 4074 if (do_include) |
4075 { | 4075 { |
4076 /* Include up to the '>'. */ | 4076 /* Include up to the '>'. */ |
4077 while (*ml_get_cursor() != '>') | 4077 while (*ml_get_cursor() != '>') |
4078 if (inc_cursor() < 0) | 4078 if (inc_cursor() < 0) |
4079 break; | 4079 break; |