From e50f35706a2d64b2724bff483e0f203ed4882c28 Mon Sep 17 00:00:00 2001 From: chengduo Date: Fri, 1 Dec 2017 18:19:22 +0800 Subject: [PATCH] code refine (#6164) --- paddle/platform/enforce.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/platform/enforce.h b/paddle/platform/enforce.h index 97338a4ce68..5abd4d4a345 100644 --- a/paddle/platform/enforce.h +++ b/paddle/platform/enforce.h @@ -244,7 +244,7 @@ inline void throw_on_error(T e) { #define __PADDLE_BINARY_COMPARE(__VAL0, __VAL1, __CMP, __INV_CMP, ...) \ do { \ - if (!UNLIKELY((__VAL0)__CMP(__VAL1))) { \ + if (UNLIKELY(!((__VAL0)__CMP(__VAL1)))) { \ PADDLE_THROW("enforce %s " #__CMP " %s failed, %s " #__INV_CMP \ " %s\n%s", \ #__VAL0, #__VAL1, paddle::string::to_string(__VAL0), \ -- GitLab