diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-27 19:04:45 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-27 19:04:45 (GMT) |
commit | 9574e0adf287e11ffd828e60c984284339d4faa2 (patch) | |
tree | cc2194ea69424cd985646d3f3cba562a8b738a19 /Modules/_posixsubprocess.c | |
parent | 389ef9dcdabe3ed83023ea50deff4b1cd3927dd3 (diff) | |
parent | 5ae4f49f4a6abe2a18febf69fb13a9e4c08e3ec6 (diff) | |
download | cpython-9574e0adf287e11ffd828e60c984284339d4faa2.zip cpython-9574e0adf287e11ffd828e60c984284339d4faa2.tar.gz cpython-9574e0adf287e11ffd828e60c984284339d4faa2.tar.bz2 |
Issue #20947: Fixed a gcc warning with -Wstrict-overflow.
Diffstat (limited to 'Modules/_posixsubprocess.c')
-rw-r--r-- | Modules/_posixsubprocess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index 0ca0aa5..5007a39 100644 --- a/Modules/_posixsubprocess.c +++ b/Modules/_posixsubprocess.c @@ -521,7 +521,7 @@ error: char *cur; _Py_write_noraise(errpipe_write, "OSError:", 8); cur = hex_errno + sizeof(hex_errno); - while (saved_errno != 0 && cur > hex_errno) { + while (saved_errno != 0 && cur != hex_errno) { *--cur = Py_hexdigits[saved_errno % 16]; saved_errno /= 16; } |