Commit 86450daf authored by Stefan Behnel's avatar Stefan Behnel

fix struct field 'is_running' for generator type: T_BOOL property expects char value

parent ba3bb949
......@@ -31,14 +31,14 @@ typedef struct {
PyObject_HEAD
__pyx_generator_body_t body;
PyObject *closure;
int is_running;
int resume_label;
PyObject *exc_type;
PyObject *exc_value;
PyObject *exc_traceback;
PyObject *gi_weakreflist;
PyObject *classobj;
PyObject *yieldfrom;
int resume_label;
char is_running; // using T_BOOL for property below requires char value
} __pyx_GeneratorObject;
static __pyx_GeneratorObject *__Pyx_Generator_New(__pyx_generator_body_t body,
......@@ -538,7 +538,7 @@ static PyMemberDef __pyx_Generator_memberlist[] = {
#if PY_VERSION_HEX >= 0x02060000
T_BOOL,
#else
T_INT,
T_BYTE,
#endif
offsetof(__pyx_GeneratorObject, is_running),
READONLY,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment