Fix compiler warning

This commit is contained in:
Behdad Esfahbod 2022-05-17 15:07:49 -06:00
parent 15be0deda0
commit dde48d78c1
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ subtag_matches (const char *lang_str,
static bool
lang_matches (const char *lang_str, const char *limit, const char *spec, unsigned spec_len)
{
if (likely (limit - lang_str < spec_len))
if (likely ((unsigned) (limit - lang_str) < spec_len))
return false;
return strncmp (lang_str, spec, spec_len) == 0 &&