diff options
Diffstat (limited to 'upb')
-rw-r--r-- | upb/pb/decoder.c | 5 | ||||
-rw-r--r-- | upb/pb/decoder.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/upb/pb/decoder.c b/upb/pb/decoder.c index 34aed1f..b624812 100644 --- a/upb/pb/decoder.c +++ b/upb/pb/decoder.c @@ -913,10 +913,11 @@ bool upb_pbdecoder_end(void *closure, const void *handler_data) { d->top->end_ofs = end; #ifdef UPB_USE_JIT_X64 - if (method->group->jit_code) { + if (method->is_native_) { + const mgroup *group = (const mgroup*)method->group; if (d->top != d->stack) d->stack->end_ofs = 0; - method->group->jit_code(closure, method->code_base.ptr, &dummy, 0, NULL); + group->jit_code(closure, method->code_base.ptr, &dummy, 0, NULL); } else #endif { diff --git a/upb/pb/decoder.h b/upb/pb/decoder.h index f28e5e6..65316b4 100644 --- a/upb/pb/decoder.h +++ b/upb/pb/decoder.h @@ -92,7 +92,7 @@ class upb::pb::DecoderMethod { * constructed. This hint may be an overestimate for some build configurations. * But if the decoder library is upgraded without recompiling the application, * it may be an underestimate. */ -#define UPB_PB_DECODER_SIZE 4400 +#define UPB_PB_DECODER_SIZE 4408 #ifdef __cplusplus |