From 14cc027ef2d1e7fd2acb28489dc259ce3da8a2f0 Mon Sep 17 00:00:00 2001 From: "Anuraag (Rag) Agrawal" Date: Fri, 21 Jun 2024 16:49:41 +0900 Subject: [PATCH] Use UPB_LONGJMP macro instead of longjmp --- upb/json/encode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upb/json/encode.c b/upb/json/encode.c index c152393ca8..66aa77f034 100644 --- a/upb/json/encode.c +++ b/upb/json/encode.c @@ -47,7 +47,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) @@ -56,7 +56,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) {