summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-27 19:03:51 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-27 19:03:51 (GMT)
commit5ae4f49f4a6abe2a18febf69fb13a9e4c08e3ec6 (patch)
treee22f7290e2624adbd4747d2ec90654b7a2865a61 /Modules
parent47dee11ba76a12d22277562b9ccea51259a5ecc0 (diff)
downloadcpython-5ae4f49f4a6abe2a18febf69fb13a9e4c08e3ec6.zip
cpython-5ae4f49f4a6abe2a18febf69fb13a9e4c08e3ec6.tar.gz
cpython-5ae4f49f4a6abe2a18febf69fb13a9e4c08e3ec6.tar.bz2
Issue #20947: Fixed a gcc warning with -Wstrict-overflow.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_posixsubprocess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c
index 8bedab5..c0240e2 100644
--- a/Modules/_posixsubprocess.c
+++ b/Modules/_posixsubprocess.c
@@ -522,7 +522,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;
}