pull/2297/head
ariza 5 years ago
parent 014e038b2c
commit 65f4136303
  1. 5
      src/hb-serialize.hh

@ -319,12 +319,11 @@ struct hb_serialize_context_t
{
const object_t* child = packed[link.objidx];
if (unlikely (!child)) { err_other_error(); return; }
unsigned offset;
switch ((whence_t)link.whence) {
unsigned offset = 0;
switch ((whence_t) link.whence) {
case Head: offset = child->head - parent->head; break;
case Tail: offset = child->head - parent->tail; break;
case Absolute: offset = (head - start) + (child->head - tail); break;
default: assert (0);
}
assert (offset >= link.bias);

Loading…
Cancel
Save