Changeset 8d2a5160


Ignore:
Timestamp:
Jul 19, 2009 10:31:35 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6c87005
Parents:
dc0cc49d
Message:
  • GeoIP: Fix minor bugs (thanks Arsene)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/GeoIP.java

    rdc0cc49d r8d2a5160  
    213213                    long ip1 = Long.parseLong(s[0]);
    214214                    long ip2 = Long.parseLong(s[1]);
    215                     while (search[idx].longValue() < ip1 && idx < search.length) {
     215                    while (idx < search.length && search[idx].longValue() < ip1) {
    216216                        idx++;
    217217                    }
    218                     while (search[idx].longValue() >= ip1 && search[idx].longValue() <= ip2 && idx < search.length) {
     218                    while (idx < search.length && search[idx].longValue() >= ip1 && search[idx].longValue() <= ip2) {
    219219                        rv[idx++] = s[2].toLowerCase();
    220220                    }
Note: See TracChangeset for help on using the changeset viewer.