mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 13:58:18 +00:00
refactor: fix clang-tidy bugprone-signed-char-misuse warnings
Prefer to declare variables with correct type instead of explicit casts wherever possible.
This commit is contained in:
@@ -354,7 +354,7 @@ char *strcase_save(const char *const orig, bool upper)
|
||||
int l = utf_ptr2len((const char_u *)p);
|
||||
if (c == 0) {
|
||||
// overlong sequence, use only the first byte
|
||||
c = *p;
|
||||
c = (char_u)(*p);
|
||||
l = 1;
|
||||
}
|
||||
int uc = upper ? mb_toupper(c) : mb_tolower(c);
|
||||
|
Reference in New Issue
Block a user