diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-27 19:05:04 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-27 19:05:04 (GMT) |
commit | eeeb3c2531e24334044e622ba904cbf4553ed735 (patch) | |
tree | 60c585c1c1af40a0b5f9c26c8fa380f6bf850c03 /Modules | |
parent | a6f035ee8d0a1f7aa0e83b8146c9ca024ac66533 (diff) | |
parent | 9574e0adf287e11ffd828e60c984284339d4faa2 (diff) | |
download | cpython-eeeb3c2531e24334044e622ba904cbf4553ed735.zip cpython-eeeb3c2531e24334044e622ba904cbf4553ed735.tar.gz cpython-eeeb3c2531e24334044e622ba904cbf4553ed735.tar.bz2 |
Issue #20947: Fixed a gcc warning with -Wstrict-overflow.
Diffstat (limited to 'Modules')
-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; } |