Changeset b33a01c


Ignore:
Timestamp:
Aug 31, 2012 2:37:15 AM (8 years ago)
Author:
sponge <sponge@…>
Branches:
master
Children:
7d4a6e74
Parents:
a4511ca
Message:

use index instead of upper and lower, it's the same thing, but makes more sense.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/util/RandomIterator.java

    ra4511ca rb33a01c  
    138138            if (index == lower)
    139139                // workaround for Android ICS bug - see below
    140                 lower = isAndroid ? nextClearBit(lower) : served.nextClearBit(lower);
     140                lower = isAndroid ? nextClearBit(index) : served.nextClearBit(index);
    141141            else if (index == upper)
    142                 upper = previousClearBit(upper - 1);
     142                upper = previousClearBit(index - 1);
    143143        }
    144144        return list.get(index);
Note: See TracChangeset for help on using the changeset viewer.