diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2006-04-11 08:06:50 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2006-04-11 08:06:50 +0000 |
| commit | 5bb7ea430f9a637e9a7208ade10f913ea7e3a762 (patch) | |
| tree | 7a2135a5136c8156f3d9a9b738ca759edfe8914f /Python/Python-ast.c | |
| parent | 96ab1d571e321409cb6a2547b2db48a31f8c7a8b (diff) | |
| download | cpython-5bb7ea430f9a637e9a7208ade10f913ea7e3a762.tar.gz | |
Make _kind types global for C++ compilation.
Explicitly cast void* to int to cmpop_ty.
Diffstat (limited to 'Python/Python-ast.c')
| -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 b8c1925fcc..7da08e5ff8 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) |
