[serialize] Minor
This commit is contained in:
parent
e42b82c828
commit
aa2293a55e
|
@ -287,16 +287,16 @@ struct OffsetTo : Offset<OffsetType, has_null>
|
||||||
if (has_null && &src == &Null (T))
|
if (has_null && &src == &Null (T))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
c->serializer->push ();
|
auto *s = c->serializer;
|
||||||
|
|
||||||
|
s->push ();
|
||||||
|
|
||||||
bool ret = src.subset (c);
|
bool ret = src.subset (c);
|
||||||
|
|
||||||
if (ret || !has_null)
|
if (ret || !has_null)
|
||||||
c->serializer->add_link (*this,
|
s->add_link (*this, s->pop_pack (), base);
|
||||||
c->serializer->pop_pack (),
|
|
||||||
base);
|
|
||||||
else
|
else
|
||||||
c->serializer->pop_discard ();
|
s->pop_discard ();
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue