Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
[3.11] gh-99845: _PyObject_DictPointer(): fix dictoffset cast#99922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Cast size_t to Py_ssize_t, rather than casting it to long. On 64-bitWindows, long is 32-bit whereas Py_ssize_t is 64-bit.
vstinner commentedDec 1, 2022
@serhiy-storchaka: I don't think that it deserves a NEWS entry, since it's unlikely that dictoffset is larger than |
miss-islington commentedDec 1, 2022
Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
bedevere-bot commentedDec 1, 2022
GH-99924 is a backport of this pull request to the3.10 branch. |
vstinner commentedDec 1, 2022
@serhiy-storchaka: Merged, thanks for the review. |
Uh oh!
There was an error while loading.Please reload this page.
Cast size_t to Py_ssize_t, rather than casting it to long. On 64-bit Windows, long is 32-bit whereas Py_ssize_t is 64-bit.