style: include IM_AVERAGE_COMPUTATION_COULD_OVERFLOW (#5131)

This commit is contained in:
Piotr Idzik
2024-05-01 11:58:04 +02:00
committed by GitHub
parent b075c19a54
commit 2513ccd62b
5 changed files with 6 additions and 9 deletions

View File

@ -97,7 +97,7 @@ public class LongestIncreasingSubsequence {
return end + 1;
}
while (left < right - 1) {
int middle = (left + right) / 2;
final int middle = (left + right) >>> 1;
if (t[middle] < key) {
left = middle;
} else {