summaryrefslogtreecommitdiff
path: root/upb/pb
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2019-01-16 19:40:17 -0800
committerGitHub <noreply@github.com>2019-01-16 19:40:17 -0800
commitc7870e0f77d6331babfdb89f8c83e4e0279b5e70 (patch)
treec846e5482a1d70b03e9b5eb957c119156fdd19a3 /upb/pb
parent87b59f445b7be42685491b816416a4e360e30b33 (diff)
Supprot FieldMask json encoding/decoding. (#147)
Diffstat (limited to 'upb/pb')
-rw-r--r--upb/pb/compile_decoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/upb/pb/compile_decoder.c b/upb/pb/compile_decoder.c
index d147edf..cec7b2a 100644
--- a/upb/pb/compile_decoder.c
+++ b/upb/pb/compile_decoder.c
@@ -666,8 +666,8 @@ static void generate_delimfield(compiler *c, const upb_fielddef *f,
putop(c, OP_STARTSTR, getsel(f, UPB_HANDLER_STARTSTR));
/* Need to emit even if no handler to skip past the string. */
putop(c, OP_STRING, getsel(f, UPB_HANDLER_STRING));
- putop(c, OP_POP);
maybeput(c, OP_ENDSTR, h, f, UPB_HANDLER_ENDSTR);
+ putop(c, OP_POP);
putop(c, OP_SETDELIM);
putop(c, OP_CHECKDELIM, LABEL_LOOPBREAK);
putchecktag(c, f, UPB_WIRE_TYPE_DELIMITED, LABEL_LOOPBREAK);
@@ -682,8 +682,8 @@ static void generate_delimfield(compiler *c, const upb_fielddef *f,
putop(c, OP_PUSHLENDELIM);
putop(c, OP_STARTSTR, getsel(f, UPB_HANDLER_STARTSTR));
putop(c, OP_STRING, getsel(f, UPB_HANDLER_STRING));
- putop(c, OP_POP);
maybeput(c, OP_ENDSTR, h, f, UPB_HANDLER_ENDSTR);
+ putop(c, OP_POP);
putop(c, OP_SETDELIM);
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback