diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-24 15:19:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-24 15:19:04 +0200 |
commit | 1c17ffa4611f4efe68c61f7cdd9ed692a866ba75 (patch) | |
tree | 009f678c60ced89e9f9185f848fb03fcd06d0b25 /src/evalfunc.c | |
parent | a2aa8a2b22de909619d7faa3ff5383a6224defc5 (diff) |
patch 8.0.1753: various warnings from a static analyserv8.0.1753
Problem: Various warnings from a static analyser
Solution: Add type casts, remove unneeded conditions. (Christian Brabandt,
closes #2770)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 62dc40e1d7..dd4462d4f8 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -10194,7 +10194,7 @@ set_buffer_lines(buf_T *buf, linenr_T lnum, typval_T *lines, typval_T *rettv) } rettv->vval.v_number = 1; /* FAIL */ - if (line == NULL || lnum < 1 || lnum > curbuf->b_ml.ml_line_count + 1) + if (line == NULL || lnum > curbuf->b_ml.ml_line_count + 1) break; /* When coming here from Insert mode, sync undo, so that this can be |