Skip to content

Commit 6a88bff

Browse files
author
Eric Bowman
committed
Minor improvement to countCityCoordinatesForCountry
1 parent 4005591 commit 6a88bff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/mapcode/Common.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ static int countCityCoordinatesForCountry(final int sameCodex, final int index,
6363
while (Data.calcCodex(e) == sameCodex) {
6464
e++;
6565
}
66-
e--;
67-
return e - i + 1;
66+
return e - i;
6867
}
6968

7069
static int getFirstNamelessRecord(final int sameCodex, final int index, final int firstCode) {

0 commit comments

Comments
 (0)