mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +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:
@@ -1071,7 +1071,7 @@ int do_search(oparg_T *oap, int dirc, int search_delim, char_u *pat, long count,
|
||||
* Find out the direction of the search.
|
||||
*/
|
||||
if (dirc == 0) {
|
||||
dirc = spats[0].off.dir;
|
||||
dirc = (char_u)spats[0].off.dir;
|
||||
} else {
|
||||
spats[0].off.dir = dirc;
|
||||
set_vv_searchforward();
|
||||
|
Reference in New Issue
Block a user