mirror of
https://github.com/netfun2000/ip2region.git
synced 2026-02-27 09:44:31 +08:00
fix the bug of vector index end ptr set
This commit is contained in:
@@ -183,9 +183,9 @@ public class Maker {
|
||||
long sPtr = Util.getIntLong(vectorIndex, idx);
|
||||
if (sPtr == 0) {
|
||||
Util.write(vectorIndex, idx, ptr, 4);
|
||||
Util.write(vectorIndex, idx + 4, ptr, 4);
|
||||
Util.write(vectorIndex, idx + 4, ptr + SegmentIndexSize, 4);
|
||||
} else {
|
||||
Util.write(vectorIndex, idx + 4, ptr, 4);
|
||||
Util.write(vectorIndex, idx + 4, ptr + SegmentIndexSize, 4);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user