From 34098c351dd1ec217ce7360e5d3cf9ea4c3711a1 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 13 Dec 2024 11:56:28 +0100 Subject: [PATCH] Nitpick: Use true/false for bool --- Modules/_ctypes/cfield.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;