Skip to content

Commit 5fc4e4b

Browse files
committed
bpo-36346: Make unicodeobject.h C89 compatible (pythonGH-20934)
1 parent 0b448f0 commit 5fc4e4b

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
@@ -57,7 +57,8 @@ Py_UNICODE_COPY(Py_UNICODE *target, const Py_UNICODE *source, Py_ssize_t length)
5757

5858
Py_DEPRECATED(3.3) static inline void
5959
Py_UNICODE_FILL(Py_UNICODE *target, Py_UNICODE value, Py_ssize_t length) {
60-
for (Py_ssize_t i = 0; i < length; i++) {
60+
Py_ssize_t i;
61+
for (i = 0; i < length; i++) {
6162
target[i] = value;
6263
}
6364
}

0 commit comments

Comments
 (0)