Index: src/uk/me/parabola/mkgmap/build/MapSplitter.java =================================================================== --- src/uk/me/parabola/mkgmap/build/MapSplitter.java (revision 4907) +++ src/uk/me/parabola/mkgmap/build/MapSplitter.java (working copy) @@ -48,7 +48,7 @@ // The maximum number of lines. NET points to lines in subdivision // using bytes. - public static final int MAX_NUM_LINES = 0xff; + public static final int MAX_NUM_LINES = 0xff-1; // Subdivision/RoadDef/RoadIndex number from 1 public static final int MAX_NUM_POINTS = 0xff; Index: test/func/SimpleTest.java =================================================================== --- test/func/SimpleTest.java (revision 4907) +++ test/func/SimpleTest.java (working copy) @@ -69,7 +69,7 @@ assertEquals("number of points at level 0", 204, list.size()); List list1 = mr.linesForLevel(0); - assertEquals("number of lines at level 0", 3289, list1.size()); + assertEquals("number of lines at level 0", 3290, list1.size()); } @Test Index: test/func/route/SimpleRouteTest.java =================================================================== --- test/func/route/SimpleRouteTest.java (revision 4907) +++ test/func/route/SimpleRouteTest.java (working copy) @@ -58,7 +58,7 @@ count++; System.out.println("TRE size " + size); // Size varies depending on svn modified status - assertThat("TRE size", size, new RangeMatcher(1414, 2)); + assertThat("TRE size", size, new RangeMatcher(1426, 2)); break; case "LBL": count++;