From dde48d78c1e1c11f3c770491a1d618386b3d92f8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 17 May 2022 15:07:49 -0600 Subject: [PATCH] Fix compiler warning --- src/hb-ot-tag.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-tag.cc b/src/hb-ot-tag.cc index 2dfab1c5a..22df9bf29 100644 --- a/src/hb-ot-tag.cc +++ b/src/hb-ot-tag.cc @@ -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 &&