This is an automated email from the ASF dual-hosted git repository.

felixybw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new ed6cdb34e4 [GLUTEN-8532][VL] Fix parenthesis within macro (#8533)
ed6cdb34e4 is described below

commit ed6cdb34e45b957b63c38531fd709394fc308c33
Author: jkhaliqi <[email protected]>
AuthorDate: Tue Jan 14 14:46:11 2025 -0800

    [GLUTEN-8532][VL] Fix parenthesis within macro (#8533)
    
    Use parentheses within macros around parameter names
---
 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 1a5fc8ea6d..e01fa96988 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 {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to