Skip to content

Commit 707852d

Browse files
Use braced if per review
Co-authored-by: Sam Gross <colesbury@gmail.com>
1 parent 1f3cec0 commit 707852d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Include/internal/pycore_critical_section.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ extern "C" {
119119
PyObject *_orig_seq = _PyObject_CAST(original); \
120120
const bool _should_lock_cs = PyList_CheckExact(_orig_seq); \
121121
_PyCriticalSection _cs; \
122-
if (_should_lock_cs) \
123-
_PyCriticalSection_Begin(&_cs, \
124-
&_orig_seq->ob_mutex) \
122+
if (_should_lock_cs) { \
123+
_PyCriticalSection_Begin(&_cs, &_orig_seq->ob_mutex); \
124+
}
125125

126126
# define Py_END_CRITICAL_SECTION_SEQUENCE_FAST() \
127127
if (_should_lock_cs) { \

0 commit comments

Comments
 (0)