Skip to content

Conversation

@miss-islington
Copy link
Contributor

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 vstinner@python.org

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 <vstinner@python.org>
@vstinner vstinner enabled auto-merge (squash) November 5, 2025 18:46
@vstinner vstinner merged commit 8675f55 into python:3.14 Nov 5, 2025
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants