Skip to content

Commit 17a7457

Browse files
author
IPIP.net
committed
Update IPCounty.java
1 parent b1740cb commit 17a7457

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IPCounty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static String[] find(String ip) throws Exception {
8989
int index_length = -1;
9090
byte b = 0;
9191
for (start = start * 12 + 1024; start < max_comp_len; start += 12) {
92-
if (indexBuffer.getInt(start) <= ip2long_value) {
92+
if (int2long(indexBuffer.getInt(start)) <= ip2long_value) {
9393
if (int2long(indexBuffer.getInt(start + 4)) >= ip2long_value) {
9494
index_offset = bytesToLong(b, indexBuffer.get(start + 10), indexBuffer.get(start + 9), indexBuffer.get(start + 8));
9595
index_length = 0xFF & indexBuffer.get(start + 11);

0 commit comments

Comments
 (0)