diff --git a/php/ext/google/protobuf/php-upb.c b/php/ext/google/protobuf/php-upb.c index 8a24966067..3504c33991 100644 --- a/php/ext/google/protobuf/php-upb.c +++ b/php/ext/google/protobuf/php-upb.c @@ -3958,7 +3958,7 @@ static void jsonenc_value(jsonenc* e, const upb_Message* msg, UPB_NORETURN static void jsonenc_err(jsonenc* e, const char* msg) { upb_Status_SetErrorMessage(e->status, msg); - longjmp(e->err, 1); + UPB_LONGJMP(e->err, 1); } UPB_PRINTF(2, 3) @@ -3967,7 +3967,7 @@ UPB_NORETURN static void jsonenc_errf(jsonenc* e, const char* fmt, ...) { va_start(argp, fmt); upb_Status_VSetErrorFormat(e->status, fmt, argp); va_end(argp); - longjmp(e->err, 1); + UPB_LONGJMP(e->err, 1); } static upb_Arena* jsonenc_arena(jsonenc* e) { diff --git a/ruby/ext/google/protobuf_c/ruby-upb.c b/ruby/ext/google/protobuf_c/ruby-upb.c index 9c007d789d..6b96937271 100644 --- a/ruby/ext/google/protobuf_c/ruby-upb.c +++ b/ruby/ext/google/protobuf_c/ruby-upb.c @@ -3446,7 +3446,7 @@ static void jsonenc_value(jsonenc* e, const upb_Message* msg, UPB_NORETURN static void jsonenc_err(jsonenc* e, const char* msg) { upb_Status_SetErrorMessage(e->status, msg); - longjmp(e->err, 1); + UPB_LONGJMP(e->err, 1); } UPB_PRINTF(2, 3) @@ -3455,7 +3455,7 @@ UPB_NORETURN static void jsonenc_errf(jsonenc* e, const char* fmt, ...) { va_start(argp, fmt); upb_Status_VSetErrorFormat(e->status, fmt, argp); va_end(argp); - longjmp(e->err, 1); + UPB_LONGJMP(e->err, 1); } static upb_Arena* jsonenc_arena(jsonenc* e) {