From 74b298a6f9555fd112dea13617c491d4bc09ec1d Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 29 Nov 2020 14:06:04 -0800 Subject: [PATCH] Fix a gcc warning about comparison of different signedness --- src/wcstringutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wcstringutil.cpp b/src/wcstringutil.cpp index a492454f8..b84efa44a 100644 --- a/src/wcstringutil.cpp +++ b/src/wcstringutil.cpp @@ -162,7 +162,7 @@ maybe_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(c)) return case_fold_t::icase; } return case_fold_t::smartcase; };