From b6f19c9d5253385e1e3cde6005113048df648989 Mon Sep 17 00:00:00 2001 From: Jacob Khaliqi Date: Tue, 14 Jan 2025 09:40:10 -0800 Subject: [PATCH] [GLUTEN-8532][VL] Fix parenthesis within macro --- cpp/core/utils/qat/QatCodec.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/core/utils/qat/QatCodec.cc b/cpp/core/utils/qat/QatCodec.cc index 1a5fc8ea6db1..e01fa96988bd 100644 --- a/cpp/core/utils/qat/QatCodec.cc +++ b/cpp/core/utils/qat/QatCodec.cc @@ -26,9 +26,9 @@ #include "QatCodec.h" -#define QZ_INIT_FAIL(rc) (QZ_OK != rc && QZ_DUPLICATE != rc) +#define QZ_INIT_FAIL(rc) ((QZ_OK != (rc)) && (QZ_DUPLICATE != (rc))) -#define QZ_SETUP_SESSION_FAIL(rc) (QZ_PARAMS == rc || QZ_NOSW_NO_HW == rc || QZ_NOSW_LOW_MEM == rc) +#define QZ_SETUP_SESSION_FAIL(rc) (QZ_PARAMS == (rc) || QZ_NOSW_NO_HW == (rc) || QZ_NOSW_LOW_MEM == (rc)) namespace gluten { namespace qat {