Skip to content

Commit 34098c3

Browse files
committed
Nitpick: Use true/false for bool
1 parent 07d7ded commit 34098c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_ctypes/cfield.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,12 +1470,12 @@ _Py_COMP_DIAG_POP
14701470
struct fielddesc *
14711471
_ctypes_get_fielddesc(const char *fmt)
14721472
{
1473-
static bool initialized = 0;
1473+
static bool initialized = false;
14741474
static PyMutex mutex = {0};
14751475
PyMutex_Lock(&mutex);
14761476
if (!initialized) {
14771477
_ctypes_init_fielddesc();
1478-
initialized = 1;
1478+
initialized = true;
14791479
}
14801480
PyMutex_Unlock(&mutex);
14811481
struct fielddesc *result = NULL;

0 commit comments

Comments
 (0)