https://github.com/python/cpython/commit/c8eabcc7c9c0611af17949b3e1c1da79ed0cf4ac
commit: c8eabcc7c9c0611af17949b3e1c1da79ed0cf4ac
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-11-08T18:45:48+01:00
summary:
gh-161625: Fix compiler warning in _uuid (#161628)
Fix the warning on Windows when building Python in 32-bit:
Modules\_uuidmodule.c(302,50): warning C4244: 'initializing':
conversion from 'uint64_t' to 'Py_ssize_t', possible loss of data
files:
M Modules/_uuidmodule.c
diff --git a/Modules/_uuidmodule.c b/Modules/_uuidmodule.c
index e957071a4ecef9..04bce1bd18901b 100644
--- a/Modules/_uuidmodule.c
+++ b/Modules/_uuidmodule.c
@@ -187,7 +187,7 @@ typedef struct {
// We overfetch entropy to speed up successive uuid generations;
// this enables 10x peformance boost.
uint8_t random_buf[RANDOM_BUF_SIZE];
- uint64_t random_idx;
+ Py_ssize_t random_idx;
uint64_t random_last_pid;
// UUID v7 state
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]