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

Skip to content

Commit 9574e0a

Browse files
Issue #20947: Fixed a gcc warning with -Wstrict-overflow.
2 parents 389ef9d + 5ae4f49 commit 9574e0a

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
@@ -521,7 +521,7 @@ child_exec(char *const exec_array[],
521521
char *cur;
522522
_Py_write_noraise(errpipe_write, "OSError:", 8);
523523
cur = hex_errno + sizeof(hex_errno);
524-
while (saved_errno != 0 && cur > hex_errno) {
524+
while (saved_errno != 0 && cur != hex_errno) {
525525
*--cur = Py_hexdigits[saved_errno % 16];
526526
saved_errno /= 16;
527527
}

0 commit comments

Comments
 (0)