Fix signed-comparison error on 32bit
This commit is contained in:
parent
938de31575
commit
1c81cff2d3
|
@ -292,7 +292,7 @@ struct hb_serialize_context_t
|
||||||
for (const object_t::link_t &link : parent->links)
|
for (const object_t::link_t &link : parent->links)
|
||||||
{
|
{
|
||||||
const object_t &child = *packed[link.objidx];
|
const object_t &child = *packed[link.objidx];
|
||||||
assert (link.bias <= parent->tail - parent->head);
|
assert (link.bias <= (size_t) (parent->tail - parent->head));
|
||||||
unsigned offset = (child.head - parent->head) - link.bias;
|
unsigned offset = (child.head - parent->head) - link.bias;
|
||||||
|
|
||||||
if (link.is_wide)
|
if (link.is_wide)
|
||||||
|
|
Loading…
Reference in New Issue