diff --git a/src/hb-shape.cc b/src/hb-shape.cc index 7d748d7d3..81094418e 100644 --- a/src/hb-shape.cc +++ b/src/hb-shape.cc @@ -67,6 +67,8 @@ parse_uint (const char **pp, const char *end, unsigned int *pv) char *pend = p; unsigned int v; + /* Intentionally use strtol instead of strtoul, such that + * -1 turns into "big number"... */ v = strtol (p, &pend, 0); if (p == pend)