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 e4a72b4 commit 742d283Copy full SHA for 742d283
Objects/genericaliasobject.c
@@ -5,6 +5,8 @@
5
#include "pycore_unionobject.h" // _Py_union_type_or, _PyGenericAlias_Check
6
#include "structmember.h" // PyMemberDef
7
8
+#include <stdbool.h>
9
+
10
typedef struct {
11
PyObject_HEAD
12
PyObject *origin;
@@ -13,7 +15,7 @@ typedef struct {
13
15
PyObject* weakreflist;
14
16
// Whether we're a starred type, e.g. *tuple[int].
17
// Only supported for `tuple`.
- int starred;
18
+ bool starred;
19
} gaobject;
20
21
@@ -649,7 +651,7 @@ ga_iternext(gaiterobject *gi) {
649
651
if (starred_tuple == NULL) {
650
652
return NULL;
653
}
- ((gaobject *)starred_tuple)->starred = 1;
654
+ ((gaobject *)starred_tuple)->starred = true;
655
Py_SETREF(gi->obj, NULL);
656
return starred_tuple;
657
0 commit comments