mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
counter correct index
This commit is contained in:
parent
cb08d19397
commit
899c5bb59c
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ public class VehicleRoutingAlgorithm {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void incCounter() {
|
public void incCounter() {
|
||||||
long i = counter++;
|
long i = ++counter;
|
||||||
long n = nextCounter;
|
long n = nextCounter;
|
||||||
if (i >= n) {
|
if (i >= n) {
|
||||||
nextCounter = n * 2;
|
nextCounter = n * 2;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue