diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-06-06 11:10:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-06 11:10:41 (GMT) |
commit | d098098ce1dcb02d18571551654cbe7b92d291a4 (patch) | |
tree | 8219baf65527abf06553096464a14e875d5fec01 | |
parent | 9bbb8e21ca93eae77461888ff1fe69a738345e0a (diff) | |
download | cpython-d098098ce1dcb02d18571551654cbe7b92d291a4.zip cpython-d098098ce1dcb02d18571551654cbe7b92d291a4.tar.gz cpython-d098098ce1dcb02d18571551654cbe7b92d291a4.tar.bz2 |
PC/_subprocess.c: Fix signed/unsigned comparison (GH-7446)
Fix the following compiler warning on Windows:
..\PC\_subprocess.c(384): warning C4018: '>' : signed/unsigned mismatch
-rw-r--r-- | PC/_subprocess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/_subprocess.c b/PC/_subprocess.c index fc9aaa4..66940ff 100644 --- a/PC/_subprocess.c +++ b/PC/_subprocess.c @@ -381,7 +381,7 @@ getenvironment(PyObject* environment) } totalsize = (p - PyString_AS_STRING(out)) + ksize + 1 + vsize + 1 + 1; - if (totalsize > PyString_GET_SIZE(out)) { + if (totalsize > (size_t)PyString_GET_SIZE(out)) { size_t offset = p - PyString_AS_STRING(out); if (_PyString_Resize(&out, totalsize + 1024)) goto exit; |