From de98d448348c2f4a0ec5ca126c604c5d6d740521 Mon Sep 17 00:00:00 2001 From: nkuehnel Date: Thu, 2 May 2024 16:42:16 +0200 Subject: [PATCH] compare times at the second level --- .../org/matsim/core/population/routes/PopulationComparison.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }