Skip to content

Commit e50f357

Browse files
chengduoreyoung
authored andcommitted
code refine (#6164)
1 parent aabe1db commit e50f357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/platform/enforce.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ inline void throw_on_error(T e) {
244244

245245
#define __PADDLE_BINARY_COMPARE(__VAL0, __VAL1, __CMP, __INV_CMP, ...) \
246246
do { \
247-
if (!UNLIKELY((__VAL0)__CMP(__VAL1))) { \
247+
if (UNLIKELY(!((__VAL0)__CMP(__VAL1)))) { \
248248
PADDLE_THROW("enforce %s " #__CMP " %s failed, %s " #__INV_CMP \
249249
" %s\n%s", \
250250
#__VAL0, #__VAL1, paddle::string::to_string(__VAL0), \

0 commit comments

Comments
 (0)