Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix int overflow in amrex::bisect (AMReX-Codes#2964)
Change from (lo+hi)/2 to lo+(hi-lo)/2. Although it's very unlikely, it's possible (lo+hi), where both lo and hi are integers, could overflow.
- Loading branch information