Skip to content

Commit a48c7f6

Browse files
committed
Improve _Py_STATS_COND_EXPR macro.
1 parent 488f0be commit a48c7f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/cpython/pystats.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static inline PyStats* _PyThreadState_GetStatsFast(void);
214214
#define _Py_STATS_COND_EXPR(cond, expr) \
215215
do { \
216216
PyStats *s = _PyStats_GET(); \
217-
if (s != NULL && cond) { \
217+
if (s != NULL && (cond)) { \
218218
s->expr; \
219219
} \
220220
} while (0)

0 commit comments

Comments
 (0)