From 7f73c9744e6c0e8dd37a208b75a4bc299bccbd4d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 2 Apr 2019 17:12:24 -0700 Subject: [PATCH] [serialize] Minor --- src/hb-open-type.hh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index df4beed..b210b29 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -287,17 +287,13 @@ struct OffsetTo : Offset if (&src == &Null (T)) return; - //serialize (c->serializer, base); - c->serializer->push (); - if (!src.subset (c)) - { + if (src.subset (c)) + c->serializer->add_link (*this, + c->serializer->pop_pack (), + base); + else c->serializer->pop_discard (); - return; - } - c->serializer->add_link (*this, - c->serializer->pop_pack (), - base); } bool sanitize_shallow (hb_sanitize_context_t *c, const void *base) const -- 2.7.4