Use unsigned shift to avoid breakage on overflow.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2743 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -367,7 +367,7 @@ public class ArrayIntSet extends AbstractIntSet
|
||||
int high = _size-1;
|
||||
|
||||
while (low <= high) {
|
||||
int mid = (low + high) >> 1;
|
||||
int mid = (low + high) >>> 1;
|
||||
int midVal = _values[mid];
|
||||
|
||||
if (midVal < key) {
|
||||
|
||||
Reference in New Issue
Block a user