Move push call to caller

This commit is contained in:
ckitagawa 2020-01-23 11:36:47 -05:00 committed by Ebrahim Byagowi
parent 7dc341fe74
commit d3fff622b3
1 changed files with 1 additions and 3 deletions

View File

@ -337,9 +337,6 @@ struct sbix
const void *dst_base,
unsigned int i,
unsigned int sbix_len) const {
// Push first so reverting doesn't fail.
c->serializer->push ();
if (strikes[i].is_null () ||
sbix_len < (unsigned int) strikes[i])
return false;
@ -365,6 +362,7 @@ struct sbix
if (unlikely (!o)) return_trace (false);
*o = 0;
auto snap = c->serializer->snapshot ();
c->serializer->push ();
bool ret = add_strike(c, dst_base, i, sbix_len);
if (!ret)
{