Skip to content

Commit

Permalink
Nitpick: Use true/false for bool
Browse files Browse the repository at this point in the history
  • Loading branch information
encukou committed Dec 13, 2024
1 parent 07d7ded commit 34098c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/_ctypes/cfield.c
Original file line number Diff line number Diff line change
Expand Up @@ -1470,12 +1470,12 @@ _Py_COMP_DIAG_POP
struct fielddesc *
_ctypes_get_fielddesc(const char *fmt)
{
static bool initialized = 0;
static bool initialized = false;
static PyMutex mutex = {0};
PyMutex_Lock(&mutex);
if (!initialized) {
_ctypes_init_fielddesc();
initialized = 1;
initialized = true;
}
PyMutex_Unlock(&mutex);
struct fielddesc *result = NULL;
Expand Down

0 comments on commit 34098c3

Please sign in to comment.