summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2020-06-17 14:43:01 (GMT)
committerGitHub <noreply@github.com>2020-06-17 14:43:01 (GMT)
commit8e34e92caa73259620dd242b92d26edd0949b4ba (patch)
tree6007cc12281eabee3bc898037617083e69beed91
parent07923f32b16ba39165a58a5f47e807ca04ae17aa (diff)
downloadcpython-8e34e92caa73259620dd242b92d26edd0949b4ba.zip
cpython-8e34e92caa73259620dd242b92d26edd0949b4ba.tar.gz
cpython-8e34e92caa73259620dd242b92d26edd0949b4ba.tar.bz2
bpo-36346: Make unicodeobject.h C89 compatible (GH-20934)
-rw-r--r--Include/cpython/unicodeobject.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h
index 569bdb1..7e53ccc 100644
--- a/Include/cpython/unicodeobject.h
+++ b/Include/cpython/unicodeobject.h
@@ -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;
}
}