From 5ae4f49f4a6abe2a18febf69fb13a9e4c08e3ec6 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 27 Sep 2016 22:03:51 +0300 Subject: Issue #20947: Fixed a gcc warning with -Wstrict-overflow. --- Modules/_posixsubprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v0.12