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

This commit is contained in:
Serhiy Storchaka 2016-09-27 22:04:45 +03:00
commit 9574e0adf2
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ error:
char *cur; char *cur;
_Py_write_noraise(errpipe_write, "OSError:", 8); _Py_write_noraise(errpipe_write, "OSError:", 8);
cur = hex_errno + sizeof(hex_errno); 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]; *--cur = Py_hexdigits[saved_errno % 16];
saved_errno /= 16; saved_errno /= 16;
} }