fix: flip is_ascii check
parent
115baecde8
commit
6eab5d616c
|
@ -59,8 +59,8 @@ uint64_t lnm_digits(uint64_t num) {
|
|||
bool lnm_is_ascii(const char *s) {
|
||||
bool valid = true;
|
||||
|
||||
while (valid && *s != '\0') {
|
||||
valid = *s < 0;
|
||||
while (valid && (*s != '\0')) {
|
||||
valid = *s >= 0;
|
||||
|
||||
s++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue