mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #20947: Fixed a gcc warning with -Wstrict-overflow.
This commit is contained in:
parent
47dee11ba7
commit
5ae4f49f4a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue