Mercurial > cpython-lru_cache-weakref
diff Python/symtable.c @ 36501:7fdc639bc5b4 legacy-trunk
Merge ssize_t branch.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Wed, 15 Feb 2006 17:27:45 +0000 |
| parents | af7d484208e9 |
| children | 30aef3ce2b26 |
line wrap: on
line diff
--- a/Python/symtable.c Wed Feb 15 06:55:57 2006 +0000 +++ b/Python/symtable.c Wed Feb 15 17:27:45 2006 +0000 @@ -426,7 +426,8 @@ analyze_cells(PyObject *scope, PyObject *free) { PyObject *name, *v, *w; - int pos = 0, success = 0; + int success = 0; + Py_ssize_t pos = 0; w = PyInt_FromLong(CELL); if (!w) @@ -507,7 +508,7 @@ PyObject *bound, PyObject *free, int class) { PyObject *name, *v, *u, *w, *free_value = NULL; - int pos = 0; + Py_ssize_t pos = 0; while (PyDict_Next(symbols, &pos, &name, &v)) { long i, flags; @@ -583,7 +584,8 @@ { PyObject *name, *v, *local = NULL, *scope = NULL, *newbound = NULL; PyObject *newglobal = NULL, *newfree = NULL; - int i, pos = 0, success = 0; + int i, success = 0; + Py_ssize_t pos = 0; local = PyDict_New(); if (!local)
