[serialize] Minor

This commit is contained in:
Behdad Esfahbod 2019-04-02 17:42:10 -07:00
parent e42b82c828
commit aa2293a55e
1 changed files with 5 additions and 5 deletions

View File

@ -287,16 +287,16 @@ struct OffsetTo : Offset<OffsetType, has_null>
if (has_null && &src == &Null (T))
return false;
c->serializer->push ();
auto *s = c->serializer;
s->push ();
bool ret = src.subset (c);
if (ret || !has_null)
c->serializer->add_link (*this,
c->serializer->pop_pack (),
base);
s->add_link (*this, s->pop_pack (), base);
else
c->serializer->pop_discard ();
s->pop_discard ();
return ret;
}