Skip to content

Commit 433b2f8

Browse files
committed
comment
1 parent a20820e commit 433b2f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vsearch.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ std::FILE * fp_log = nullptr;
348348
auto is_not_ASCII(std::string const & user_string) -> bool {
349349
static constexpr auto ascii_max = std::numeric_limits<signed char>::max();
350350
auto is_not_in_range = [](char const user_char) -> bool {
351+
// warning: user_char < 0 is always false? not true in my tests
351352
return (user_char < 0) or (user_char > ascii_max);
352353
};
353354
return std::any_of(user_string.begin(), user_string.end(), is_not_in_range);

0 commit comments

Comments
 (0)