Skip to content

Commit 8e34e92

Browse files
authored
bpo-36346: Make unicodeobject.h C89 compatible (GH-20934)
1 parent 07923f3 commit 8e34e92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Include/cpython/unicodeobject.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ Py_UNICODE_COPY(Py_UNICODE *target, const Py_UNICODE *source, Py_ssize_t length)
5353

5454
Py_DEPRECATED(3.3) static inline void
5555
Py_UNICODE_FILL(Py_UNICODE *target, Py_UNICODE value, Py_ssize_t length) {
56-
for (Py_ssize_t i = 0; i < length; i++) {
56+
Py_ssize_t i;
57+
for (i = 0; i < length; i++) {
5758
target[i] = value;
5859
}
5960
}

0 commit comments

Comments
 (0)