We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07d7ded commit 34098c3Copy full SHA for 34098c3
Modules/_ctypes/cfield.c
@@ -1470,12 +1470,12 @@ _Py_COMP_DIAG_POP
1470
struct fielddesc *
1471
_ctypes_get_fielddesc(const char *fmt)
1472
{
1473
- static bool initialized = 0;
+ static bool initialized = false;
1474
static PyMutex mutex = {0};
1475
PyMutex_Lock(&mutex);
1476
if (!initialized) {
1477
_ctypes_init_fielddesc();
1478
- initialized = 1;
+ initialized = true;
1479
}
1480
PyMutex_Unlock(&mutex);
1481
struct fielddesc *result = NULL;
0 commit comments