Fix for integer overflow in BinaryHeap for ZSTs#149451
Fix for integer overflow in BinaryHeap for ZSTs#149451Saphereye wants to merge 1 commit intorust-lang:mainfrom
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
I left some suggestions rephrasing comments, but with that this is looking good.
If you could then squash the commits, I think it will be ready to go.
66c47bb to
0edddd2
Compare
|
Can we add test(s) to exercise this code with a BinaryHeap of ZSTs? I think the code changes look reasonable enough. @rustbot author |
|
Reminder, once the PR becomes ready for a review, use |
|
@Saphereye any updates on this? thanks |
|
Hi, sorry for the delay. |
Fixes #149448
This PR fixes a potential integer overflow while calculating the children of a node for a BinaryHeap for zero sized types.