Skip to content

Commit 5d6b370

Browse files
committed
fix issue
1 parent afeadf5 commit 5d6b370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/platform/enforce.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ struct EOFException : public std::exception {
134134
#define LIKELY(condition) __builtin_expect(static_cast<bool>(condition), 1)
135135
#else
136136
// there is no equivalent intrinsics in msvc.
137-
#define LIKELY(condition) !(condition)
137+
#define LIKELY(condition) (condition)
138138
#endif
139139

140140
template <typename... Args>

0 commit comments

Comments
 (0)