From 55c32251dabca3e3ddcf88057b30649c8f2e02a7 Mon Sep 17 00:00:00 2001 From: igorshevach Date: Tue, 17 Sep 2024 11:31:26 +0300 Subject: [PATCH] fix _S macro --- transcoder/core.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/transcoder/core.h b/transcoder/core.h index aa3476f8..3148813a 100644 --- a/transcoder/core.h +++ b/transcoder/core.h @@ -5,7 +5,13 @@ #include "libs.h" -#define _S(EXP) if ((EXP)<0) { return EXP;} +#define _S(EXP) { \ + int retVal = (EXP); \ + if(retVal < 0) { \ + return retVal; \ + } \ +} + #ifndef u_char #define u_char unsigned char #endif