fixed gcc warning about comparison being always true

This commit is contained in:
Tim Rühsen 2015-01-21 12:26:44 +01:00
parent d5254ac816
commit 6f899ae32b
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{
while (*s > 0 && *s < 128) s++;
while (*s && *((unsigned char *)s) < 128) s++;
return !*s;
}