mirror of https://github.com/python/cpython
Make it compile with GCC 2.96.
This commit is contained in:
parent
f09ca140ac
commit
755114a22a
|
@ -803,11 +803,13 @@ PyUnicode_FromFormatV(const char *format, va_list vargs)
|
||||||
case 'S':
|
case 'S':
|
||||||
case 'R':
|
case 'R':
|
||||||
{
|
{
|
||||||
|
Py_UNICODE *ucopy;
|
||||||
|
Py_ssize_t usize;
|
||||||
|
Py_ssize_t upos;
|
||||||
/* unused, since we already have the result */
|
/* unused, since we already have the result */
|
||||||
(void) va_arg(vargs, PyObject *);
|
(void) va_arg(vargs, PyObject *);
|
||||||
Py_UNICODE *ucopy = PyUnicode_AS_UNICODE(*callresult);
|
ucopy = PyUnicode_AS_UNICODE(*callresult);
|
||||||
Py_ssize_t usize = PyUnicode_GET_SIZE(*callresult);
|
usize = PyUnicode_GET_SIZE(*callresult);
|
||||||
Py_ssize_t upos;
|
|
||||||
for (upos = 0; upos<usize;)
|
for (upos = 0; upos<usize;)
|
||||||
*s++ = ucopy[upos++];
|
*s++ = ucopy[upos++];
|
||||||
/* We're done with the unicode()/repr() => forget it */
|
/* We're done with the unicode()/repr() => forget it */
|
||||||
|
|
Loading…
Reference in New Issue