diff --git a/matsim/src/main/java/org/matsim/core/population/routes/PopulationComparison.java b/matsim/src/main/java/org/matsim/core/population/routes/PopulationComparison.java index cb98d6266ec..c6396a58f79 100644 --- a/matsim/src/main/java/org/matsim/core/population/routes/PopulationComparison.java +++ b/matsim/src/main/java/org/matsim/core/population/routes/PopulationComparison.java @@ -122,7 +122,7 @@ private static boolean isBothUndefinedOrWithinDelta(OptionalTime time1, Optional if (time1.isUndefined() ^ time2.isUndefined()) { return false; } else if(time1.isDefined()) { - return isWithinDelta(time1.seconds(), time2.seconds(), delta); + return isWithinDelta((int) time1.seconds(), (int) time2.seconds(), delta); } return true; }