fix: flip is_ascii check

main
Jef Roosens 2024-03-02 22:51:40 +01:00
parent 115baecde8
commit 6eab5d616c
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 2 additions and 2 deletions

View File

@ -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++;
}