diff options
author | Guido van Rossum <guido@python.org> | 2007-06-13 01:04:27 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-06-13 01:04:27 (GMT) |
commit | 755114a22aa9e55288b379c097ceecdc5a72b84b (patch) | |
tree | be896bbb7334e2b8a4d8d7b6ab07d031539f102c /Objects/unicodeobject.c | |
parent | f09ca140acdae8efe1a61a813cdc4bed90ad004b (diff) | |
download | cpython-755114a22aa9e55288b379c097ceecdc5a72b84b.zip cpython-755114a22aa9e55288b379c097ceecdc5a72b84b.tar.gz cpython-755114a22aa9e55288b379c097ceecdc5a72b84b.tar.bz2 |
Make it compile with GCC 2.96.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index bb4036a..18843c0 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -803,11 +803,13 @@ PyUnicode_FromFormatV(const char *format, va_list vargs) 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 */ |