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

Skip to content

Commit c72828b

Browse files
committed
cleanup random.c
Casting Py_ssize_t to Py_ssize_t is useless.
1 parent b98a36e commit c72828b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ dev_urandom_noraise(unsigned char *buffer, Py_ssize_t size)
251251
break;
252252
}
253253
buffer += n;
254-
size -= (Py_ssize_t)n;
254+
size -= n;
255255
}
256256
close(fd);
257257
}

0 commit comments

Comments
 (0)