bpo-33041: Fix downcast warning on Windows#6595
Conversation
Cast pointer difference from ssize_t to int: a frame is very unlikely larger than 2 GB.
|
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? |
Sorry, something went wrong.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
I think it is safe. This difference should be limited by co_stacksize which has type int.
Sorry, something went wrong.
Oh right. Thanks for checking! |
Sorry, something went wrong.
|
@vstinner: Please replace |
Sorry, something went wrong.
Cast pointer difference from ssize_t to int: a frame is very unlikely
larger than 2 GB.
https://bugs.python.org/issue33041