From: Serhiy Storchaka Date: Tue, 27 Sep 2016 19:03:51 +0000 (+0300) Subject: Issue #20947: Fixed a gcc warning with -Wstrict-overflow. X-Git-Tag: v3.6.0b2~108^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ae4f49f4a6abe2a18febf69fb13a9e4c08e3ec6;p=python Issue #20947: Fixed a gcc warning with -Wstrict-overflow. --- diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index 8bedab5c27..c0240e2af0 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; }