]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-36346: Make unicodeobject.h C89 compatible (GH-20934)
authorInada Naoki <songofacandy@gmail.com>
Wed, 17 Jun 2020 14:43:01 +0000 (23:43 +0900)
committerGitHub <noreply@github.com>
Wed, 17 Jun 2020 14:43:01 +0000 (23:43 +0900)
Include/cpython/unicodeobject.h

index 569bdb1e2a94badf9d3d112403daa165ad161a06..7e53ccc9e63f07ad2c3c343aa863ecca26632edd 100644 (file)
@@ -53,7 +53,8 @@ Py_UNICODE_COPY(Py_UNICODE *target, const Py_UNICODE *source, Py_ssize_t length)
 
 Py_DEPRECATED(3.3) static inline void
 Py_UNICODE_FILL(Py_UNICODE *target, Py_UNICODE value, Py_ssize_t length) {
-    for (Py_ssize_t i = 0; i < length; i++) {
+    Py_ssize_t i;
+    for (i = 0; i < length; i++) {
         target[i] = value;
     }
 }