Skip to content
Prev Previous commit
Next Next commit
Use braced if per review
Co-authored-by: Sam Gross <colesbury@gmail.com>
  • Loading branch information
MojoVampire and colesbury committed May 22, 2024
commit 707852da197c4ac42778a78c7066dac2efc18372
6 changes: 3 additions & 3 deletions Include/internal/pycore_critical_section.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ extern "C" {
PyObject *_orig_seq = _PyObject_CAST(original); \
const bool _should_lock_cs = PyList_CheckExact(_orig_seq); \
_PyCriticalSection _cs; \
if (_should_lock_cs) \
_PyCriticalSection_Begin(&_cs, \
&_orig_seq->ob_mutex) \
if (_should_lock_cs) { \
_PyCriticalSection_Begin(&_cs, &_orig_seq->ob_mutex); \
}

# define Py_END_CRITICAL_SECTION_SEQUENCE_FAST() \
if (_should_lock_cs) { \
Expand Down