Cast long->size_t to ensure comparison of similar types

This commit is contained in:
GaryQian 2019-06-24 12:57:13 -07:00 committed by Behdad Esfahbod
parent ec8e635e0c
commit ccf1448238
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ _hb_options_init ()
p = c + strlen (c);
#define OPTION(name, symbol) \
if (0 == strncmp (c, name, p - c) && strlen (name) == p - c) do { u.opts.symbol = true; } while (0)
if (0 == strncmp (c, name, p - c) && strlen (name) == static_cast<size_t>(p - c)) do { u.opts.symbol = true; } while (0)
OPTION ("uniscribe-bug-compatible", uniscribe_bug_compatible);
OPTION ("aat", aat);