We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cast pointer difference from ssize_t to int: a frame is very unlikely larger than 2 GB.
https://bugs.python.org/issue33041
Sorry, something went wrong.
bpo-33041: Fix downcast warning on Windows
460de8e
I'm not sure about silently downcasting ssize_t to int. Maybe a check at runtime would be safer, but I'm too lazy to write complex code to handle errors :-) What do you think @serhiy-storchaka? Is it ok to rely that a stack will not be larger than 2 GB?
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think it is safe. This difference should be limited by co_stacksize which has type int.
co_stacksize
int
Oh right. Thanks for checking!
078c4e3
@vstinner: Please replace # with GH- in the commit message next time. Thanks!
#
GH-
serhiy-storchaka serhiy-storchaka approved these changes
Successfully merging this pull request may close these issues.