Cast long->size_t to ensure comparison of similar types
This commit is contained in:
parent
ec8e635e0c
commit
ccf1448238
|
@ -70,7 +70,7 @@ _hb_options_init ()
|
||||||
p = c + strlen (c);
|
p = c + strlen (c);
|
||||||
|
|
||||||
#define OPTION(name, symbol) \
|
#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 ("uniscribe-bug-compatible", uniscribe_bug_compatible);
|
||||||
OPTION ("aat", aat);
|
OPTION ("aat", aat);
|
||||||
|
|
Loading…
Reference in New Issue