Commit 5ae4f49f authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #20947: Fixed a gcc warning with -Wstrict-overflow.

parent 47dee11b
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment