Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ae4f49

Browse files
Issue #20947: Fixed a gcc warning with -Wstrict-overflow.
1 parent 47dee11 commit 5ae4f49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_posixsubprocess.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ child_exec(char *const exec_array[],
522522
char *cur;
523523
_Py_write_noraise(errpipe_write, "OSError:", 8);
524524
cur = hex_errno + sizeof(hex_errno);
525-
while (saved_errno != 0 && cur > hex_errno) {
525+
while (saved_errno != 0 && cur != hex_errno) {
526526
*--cur = Py_hexdigits[saved_errno % 16];
527527
saved_errno /= 16;
528528
}

0 commit comments

Comments
 (0)