Commit 3ecf637
[3.13] Fix a compiler warning in _randommodule.c (pythonGH-141058) (python#141064)
Fix a compiler warning in _randommodule.c (pythonGH-141058)
The test just before the cast ensures that the cast cannot overflow.
Fix the warning on 32-bit Windows:
Modules\_randommodule.c(525,28): warning C4244: '=': conversion
from 'uint64_t' to 'Py_ssize_t', possible loss of data
(cherry picked from commit 4ac16dd)
Co-authored-by: Victor Stinner <[email protected]>1 parent 91b85c5 commit 3ecf637
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| |||
0 commit comments