diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-02-12 17:41:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-12 17:41:54 +0100 |
commit | 47638706a37534ae9bc7ac4c57ddb9fb2b44fef0 (patch) | |
tree | 845d44d3aab6e19329420c606f79315ee37c14d0 /src/nvim/eval.c | |
parent | f573fcbc0d2c8d8143f38c3c53f6cc33a5912c6d (diff) | |
download | rneovim-47638706a37534ae9bc7ac4c57ddb9fb2b44fef0.tar.gz rneovim-47638706a37534ae9bc7ac4c57ddb9fb2b44fef0.tar.bz2 rneovim-47638706a37534ae9bc7ac4c57ddb9fb2b44fef0.zip |
build: treat clang-tidy warnings as errors (#22238)
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index fb69734457..1a10f8aebc 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -3410,7 +3410,7 @@ static int eval_index(char **arg, typval_T *rettv, int evaluate, int verbose) if (n1 >= len || n2 < 0 || n1 > n2) { v = NULL; } else { - v = xmemdupz(s + n1, (size_t)(n2 - n1 + 1)); + v = xmemdupz(s + n1, (size_t)n2 - (size_t)n1 + 1); } } else { // The resulting variable is a string of a single |