Skip to content

Commit

Permalink
[BUG] Fix issue with compilation on g++-11
Browse files Browse the repository at this point in the history
  • Loading branch information
sukritkalra committed Apr 4, 2024
1 parent 45366c0 commit d68a44c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions schedulers/tetrisched/src/Expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,12 @@ ExpressionTimeBounds Expression::getTimeBounds() const {

// The start and end time ranges of a LessThanExpression are defined
// by the start of the first child and the end of the second.
return {
.startTimeRange = children[0]->getTimeBounds().startTimeRange,
.endTimeRange = children[1]->getTimeBounds().endTimeRange,
.duration = children[0]->getTimeBounds().duration +
children[1]->getTimeBounds().duration,
};
return ExpressionTimeBounds(
children[0]->getTimeBounds().startTimeRange,
children[1]->getTimeBounds().endTimeRange,
children[0]->getTimeBounds().duration +
children[1]->getTimeBounds().duration,
);
} else {
// For multiple children, we merge their time bounds, and find the
// minimum duration.
Expand Down Expand Up @@ -267,11 +267,11 @@ ExpressionTimeBounds Expression::getTimeBounds() const {
}
}

return {
.startTimeRange = startTimeRange,
.endTimeRange = endTimeRange,
.duration = minDuration,
};
return ExpressionTimeBounds(
startTimeRange,
endTimeRange,
minDuration,
);
}
}
}
Expand Down

0 comments on commit d68a44c

Please sign in to comment.