Skip to content

Commit 275e809

Browse files
remove from bool
1 parent 4efcf14 commit 275e809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_ctypes/_ctypes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5282,9 +5282,9 @@ Simple_bool(PyObject *op)
52825282
{
52835283
int cmp;
52845284
CDataObject *self = _CDataObject_CAST(op);
5285-
Py_BEGIN_CRITICAL_SECTION(op);
5285+
LOCK_PTR(self);
52865286
cmp = memcmp(self->b_ptr, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", self->b_size);
5287-
Py_END_CRITICAL_SECTION();
5287+
UNLOCK_PTR(self);
52885288
return cmp;
52895289
}
52905290

0 commit comments

Comments
 (0)