Cast long->size_t to ensure comparison of similar types

pull/1792/head
GaryQian 6 years ago committed by Behdad Esfahbod
parent ec8e635e0c
commit ccf1448238
  1. 2
      src/hb-common.cc

@ -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);

Loading…
Cancel
Save