]> granicus.if.org Git - python/commitdiff
Fix Windows build (re r77461)
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 13 Jan 2010 08:55:20 +0000 (08:55 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 13 Jan 2010 08:55:20 +0000 (08:55 +0000)
Objects/unicodeobject.c

index b7874f1b68edaf39e94a34a9f00a1ec5438b21a7..e74165a42cc7eb0ae7583baa0770528f5c09a1ae 100644 (file)
@@ -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;