Fix compiler warning `type-limits` in `found_string` (ref #2911) (#3263)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Whether `char` has a sign is implementation dependent, and `c >= 0` may result in a compiler warning. We can use bitwise operator to check whether the character is a control character, regardless of the sign.
authored by itchyny · committed by GitHub · parent 6d8e9f9 · Browse files · 2 files+15 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+15 added−1 removed
- tests:+14 added−0 removed
- other:+1 added−1 removed