From 755114a22aa9e55288b379c097ceecdc5a72b84b Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 13 Jun 2007 01:04:27 +0000 Subject: [PATCH] Make it compile with GCC 2.96. --- Objects/unicodeobject.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index bb4036aa7ac..18843c060be 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 forget it */