bpo-36346: Make unicodeobject.h C89 compatible (GH-20934) · python/cpython@8e34e92 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 8e34e92

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 2 additions & 1 deletion

Original file line number Diff line number Diff line change
@@ -53,7 +53,8 @@ Py_UNICODE_COPY(Py_UNICODE *target, const Py_UNICODE *source, Py_ssize_t length)
53 53
54 54 Py_DEPRECATED(3.3) static inline void
55 55 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++) {
57 58 target[i] = value;
58 59 }
59 60 }