mirror of
https://github.com/servo/servo
synced 2026-05-15 11:26:50 +02:00
Fix integer overflow in next_power_of_two This causes a panic (debug) or incorrect results (release) when initializing a work queue with thread_count = 1. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11132) <!-- Reviewable:end -->