From: Antoine Pitrou Date: Wed, 13 Jan 2010 08:55:20 +0000 (+0000) Subject: Fix Windows build (re r77461) X-Git-Tag: v2.7a3~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c767c2f876a0e9611489033b1be92c566273d6f;p=python Fix Windows build (re r77461) --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index b7874f1b68..e74165a42c 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -5791,10 +5791,10 @@ PyObject *replace(PyUnicodeObject *self, goto nothing; if (str1->length == str2->length) { + Py_ssize_t i; /* same length */ if (str1->length == 0) goto nothing; - Py_ssize_t i; if (str1->length == 1) { /* replace characters */ Py_UNICODE u1, u2;