]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
updated tp_flags initialization to use inplace or (#120625)
authorbyundojin <103907292+byundojin@users.noreply.github.com>
Wed, 3 Jul 2024 07:51:25 +0000 (16:51 +0900)
committerGitHub <noreply@github.com>
Wed, 3 Jul 2024 07:51:25 +0000 (13:21 +0530)
Objects/typeobject.c

index b042e64a188d9da67fd5c3840cffd78253105451..447e561c0d4440f71957b2c2ae890b0b8a976da8 100644 (file)
@@ -8395,7 +8395,7 @@ type_ready(PyTypeObject *type, int initial)
     }
 
     /* All done -- set the ready flag */
-    type->tp_flags = type->tp_flags | Py_TPFLAGS_READY;
+    type->tp_flags |= Py_TPFLAGS_READY;
     stop_readying(type);
 
     assert(_PyType_CheckConsistency(type));