Skip to content
Permalink
Browse files
6671: Eagerly convert end time to the same unit as start time
Reviewed-by: hirt
  • Loading branch information
Henrik Dafgård committed Jan 13, 2020
1 parent 0f08461 commit bfb23cde34f5e8d9c284c7dc550a17ea7d9d6643
@@ -114,7 +114,7 @@ public DisjointBuilder(IMemberAccessor<IQuantity, ? super T> startAccessor,

public void add(T e) {
IQuantity start = startAccessor.getMember(e);
IQuantity end = endAccessor.getMember(e);
IQuantity end = endAccessor.getMember(e).in(start.getUnit());
if (noLanes == 0) {
addToNewLane(e, start, end);
} else if (!lanes[0].accept(e, start, end)) {

0 comments on commit bfb23cd

Please sign in to comment.