We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a20820e commit 433b2f8Copy full SHA for 433b2f8
src/vsearch.cc
@@ -348,6 +348,7 @@ std::FILE * fp_log = nullptr;
348
auto is_not_ASCII(std::string const & user_string) -> bool {
349
static constexpr auto ascii_max = std::numeric_limits<signed char>::max();
350
auto is_not_in_range = [](char const user_char) -> bool {
351
+ // warning: user_char < 0 is always false? not true in my tests
352
return (user_char < 0) or (user_char > ascii_max);
353
};
354
return std::any_of(user_string.begin(), user_string.end(), is_not_in_range);
0 commit comments