aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-02-27 12:29:33 +0100
committerDundar Göc <gocdundar@gmail.com>2022-03-04 19:52:41 +0100
commit4d2744ffe30c785ff19624831e36d01e3f6a6089 (patch)
tree31d0c58da0d3ec11c234a1152be0b9cf555de790 /src/nvim/eval.c
parent83fc914337100d03f2e41a3943ccf0107d893698 (diff)
downloadrneovim-4d2744ffe30c785ff19624831e36d01e3f6a6089.tar.gz
rneovim-4d2744ffe30c785ff19624831e36d01e3f6a6089.tar.bz2
rneovim-4d2744ffe30c785ff19624831e36d01e3f6a6089.zip
refactor: fix clang-tidy bugprone-signed-char-misuse warnings
Prefer to declare variables with correct type instead of explicit casts wherever possible.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index d95b9560c2..c5c03455b7 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -4858,7 +4858,6 @@ int get_option_tv(const char **const arg, typval_T *const rettv, const bool eval
long numval;
char_u *stringval;
int opt_type;
- int c;
bool working = (**arg == '+'); // has("+option")
int ret = OK;
int opt_flags;
@@ -4877,7 +4876,7 @@ int get_option_tv(const char **const arg, typval_T *const rettv, const bool eval
return OK;
}
- c = *option_end;
+ char c = *option_end;
*option_end = NUL;
opt_type = get_option_value(*arg, &numval,
rettv == NULL ? NULL : &stringval, opt_flags);