diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-04-11 08:06:50 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-04-11 08:06:50 (GMT) |
commit | 01b810106c348db2e3242126adf655b686aa2a1c (patch) | |
tree | 05720ebb7aced194421b69bb1ea225af60ac0092 /Python | |
parent | 9b26122ec0f0b2dd219070b19efd95f54aade034 (diff) | |
download | cpython-01b810106c348db2e3242126adf655b686aa2a1c.zip cpython-01b810106c348db2e3242126adf655b686aa2a1c.tar.gz cpython-01b810106c348db2e3242126adf655b686aa2a1c.tar.bz2 |
Make _kind types global for C++ compilation.
Explicitly cast void* to int to cmpop_ty.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/Python-ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index b8c1925..7da08e5 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -2505,7 +2505,7 @@ ast2obj_expr(void* _o) value = PyList_New(n); if (!value) goto failed; for(i = 0; i < n; i++) - PyList_SET_ITEM(value, i, ast2obj_cmpop((cmpop_ty)asdl_seq_GET(o->v.Compare.ops, i))); + PyList_SET_ITEM(value, i, ast2obj_cmpop((cmpop_ty)(int)asdl_seq_GET(o->v.Compare.ops, i))); } if (!value) goto failed; if (PyObject_SetAttrString(result, "ops", value) == -1) |