Skip to content

Commit

Permalink
#251 termination: fix bug in epoch resolved incorrectly for DS
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander authored and PhilMiller committed Jan 18, 2019
1 parent 8311734 commit b24765a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/vt/termination/term_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ inline bool EpochWindow::isArchetypal(EpochType const& epoch) {
bool EpochWindow::inWindow(EpochType const& epoch) const {
vtAssertExpr(last_unresolved_epoch_ >= first_unresolved_epoch_);
vtAssertExpr(initialized_);
return epoch < first_unresolved_epoch_;
if (first_unresolved_epoch_ == no_epoch) {
return false;
} else {
return epoch < first_unresolved_epoch_;
}
}

void EpochWindow::addEpoch(EpochType const& epoch) {
Expand Down

0 comments on commit b24765a

Please sign in to comment.