Skip to content

Commit

Permalink
#1941: modify assert
Browse files Browse the repository at this point in the history
  • Loading branch information
stmcgovern authored and cz4rs committed Sep 28, 2022
1 parent be7753d commit b081f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vt/termination/termination.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ inline EpochType TerminationDetector::popEpoch(EpochType const& epoch) {
auto const& non_zero = epoch_stack_.size() > 0;
vtAssertExprInfo(
non_zero and (epoch_stack_.top() == epoch.get() or epoch == no_epoch),
epoch, non_zero, epoch_stack_.top()
epoch, non_zero, non_zero ? epoch_stack_.top() : no_epoch
);
if (epoch == no_epoch) {
return non_zero ? epoch_stack_.pop(),EpochType{epoch_stack_.top()} : no_epoch;
Expand Down

0 comments on commit b081f31

Please sign in to comment.