[Python-checkins] bpo-36346: Make unicodeobject.h C89 compatible (GH-20934)
Inada Naoki
webhook-mailer at python.org
Wed Jun 17 10:43:10 EDT 2020
https://github.com/python/cpython/commit/8e34e92caa73259620dd242b92d26edd0949b4ba
commit: 8e34e92caa73259620dd242b92d26edd0949b4ba
branch: master
author: Inada Naoki <songofacandy at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020年06月17日T23:43:01+09:00
summary:
bpo-36346: Make unicodeobject.h C89 compatible (GH-20934)
files:
M Include/cpython/unicodeobject.h
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h
index 569bdb1e2a94b..7e53ccc9e63f0 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;
}
}
More information about the Python-checkins
mailing list