Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Modules/_uuidmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ gen_random_lock_held(PyObject *module, uuid_state *state, uint8_t *bytes,
// entropy as a continuous stream.
// The overhead here must be negligible, but we want the same
// code to be run in production and in tests.
Py_ssize_t partial = RANDOM_BUF_SIZE - state->random_idx;
Py_ssize_t partial = RANDOM_BUF_SIZE - (Py_ssize_t)state->random_idx;
memcpy(bytes, state->random_buf + state->random_idx, partial);
bytes += partial;
size -= partial;
Expand Down
Loading