bpo-29882: Fix portability bug introduced in GH-30774#30794
Conversation
|
Can you please add a test for ref: #30774 (comment) |
Sorry, something went wrong.
Sure, will do. Though note that there's really nothing at all special about that value: any input value larger than |
Sorry, something went wrong.
vstinner
left a comment
There was a problem hiding this comment.
Adding (uint32_t) cast and the added test LGTM. I didn't review the long comment ;-)
Sorry, something went wrong.
tim-one
left a comment
There was a problem hiding this comment.
Looks fine to me!
Sorry, something went wrong.
|
@mdickinson: Please replace |
Sorry, something went wrong.
This PR fixes a portability bug in
_Py_popcount32that was introduced in GH-30774, and adds a comment explaining why the final line of the function is delicate.Prior discussions:
https://bugs.python.org/issue29882