diff --git a/Modules/_ctypes/cfield.c b/Modules/_ctypes/cfield.c index 398d0809da79ac..9c1b9ce5f30bf0 100644 --- a/Modules/_ctypes/cfield.c +++ b/Modules/_ctypes/cfield.c @@ -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;