bpo-36346: Make unicodeobject.h C89 compatible (GH-20934)

This commit is contained in:
Inada Naoki 2020-06-17 23:43:01 +09:00 committed by GitHub
parent 07923f32b1
commit 8e34e92caa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View 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;
}
}