Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 42073:f833b43c2756
Make it compile with GCC 2.96.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 13 Jun 2007 01:04:27 +0000 |
| parents | 4877008074a9 |
| children | 229c28cb9afb |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Wed Jun 13 00:03:05 2007 +0000 +++ b/Objects/unicodeobject.c Wed Jun 13 01:04:27 2007 +0000 @@ -803,11 +803,13 @@ case 'S': case 'R': { + Py_UNICODE *ucopy; + Py_ssize_t usize; + Py_ssize_t upos; /* unused, since we already have the result */ (void) va_arg(vargs, PyObject *); - Py_UNICODE *ucopy = PyUnicode_AS_UNICODE(*callresult); - Py_ssize_t usize = PyUnicode_GET_SIZE(*callresult); - Py_ssize_t upos; + ucopy = PyUnicode_AS_UNICODE(*callresult); + usize = PyUnicode_GET_SIZE(*callresult); for (upos = 0; upos<usize;) *s++ = ucopy[upos++]; /* We're done with the unicode()/repr() => forget it */
