projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec8e635
)
Cast long->size_t to ensure comparison of similar types
author
GaryQian
<garyq@google.com>
Mon, 24 Jun 2019 19:57:13 +0000
(12:57 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 24 Jun 2019 20:03:07 +0000
(13:03 -0700)
src/hb-common.cc
patch
|
blob
|
history
diff --git
a/src/hb-common.cc
b/src/hb-common.cc
index
fb6377e
..
9035755
100644
(file)
--- a/
src/hb-common.cc
+++ b/
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);