diff options
author | ZyX <kp-pav@yandex.ru> | 2017-05-20 03:48:10 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-05-20 03:49:36 +0300 |
commit | 98baea63ff85296a0f47e4fbbe68f6a95b1df112 (patch) | |
tree | f76f3f621b78bbcc2900c3667f84c0bd29ead1b3 | |
parent | 1db29cb5e57da4db212b23a0a7e4e887d40315e3 (diff) | |
download | rneovim-98baea63ff85296a0f47e4fbbe68f6a95b1df112.tar.gz rneovim-98baea63ff85296a0f47e4fbbe68f6a95b1df112.tar.bz2 rneovim-98baea63ff85296a0f47e4fbbe68f6a95b1df112.zip |
eval: Silence V782
-rw-r--r-- | src/nvim/eval.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 75cf564f55..982dc2841a 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -13058,8 +13058,9 @@ static void f_readfile(typval_T *argvars, typval_T *rettv, FunPtr fptr) /* have to shuffle buf to close gap */ int adjust_prevlen = 0; - if (dest < buf) { - adjust_prevlen = (int)(buf - dest); /* must be 1 or 2 */ + if (dest < buf) { // -V782 + adjust_prevlen = (int)(buf - dest); // -V782 + // adjust_prevlen must be 1 or 2. dest = buf; } if (readlen > p - buf + 1) |