mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
Fix a gcc warning about comparison of different signedness
This commit is contained in:
parent
f5f0f98991
commit
74b298a6f9
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ maybe_t<string_fuzzy_match_t> string_fuzzy_match_t::try_create(const wcstring &s
|
|||
// Use icase if the input contains any uppercase characters, smartcase otherwise.
|
||||
auto get_case_fold = [&] {
|
||||
for (wchar_t c : string) {
|
||||
if (towlower(c) != c) return case_fold_t::icase;
|
||||
if (towlower(c) != static_cast<wint_t>(c)) return case_fold_t::icase;
|
||||
}
|
||||
return case_fold_t::smartcase;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue