fixed gcc warning about comparison being always true
This commit is contained in:
parent
d5254ac816
commit
6f899ae32b
|
@ -483,7 +483,7 @@ const char *psl_registrable_domain(const psl_ctx_t *psl, const char *domain)
|
||||||
|
|
||||||
static int _str_is_ascii(const char *s)
|
static int _str_is_ascii(const char *s)
|
||||||
{
|
{
|
||||||
while (*s > 0 && *s < 128) s++;
|
while (*s && *((unsigned char *)s) < 128) s++;
|
||||||
|
|
||||||
return !*s;
|
return !*s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue