Skip to content

Commit

Permalink
#1258: move skip calls to correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Feb 23, 2021
1 parent 8900523 commit b1e27e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vt/pipe/callback/cb_union/cb_raw.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ struct GeneralCallback {
using EnumDataType = typename std::underlying_type<CallbackEnum>::type;
EnumDataType val = static_cast<EnumDataType>(active_);
s | val;

s.skip(active_);
s.skip(u_);
active_ = static_cast<CallbackEnum>(val);
switch (active_) {
case CallbackEnum::AnonCB:
Expand Down Expand Up @@ -255,9 +258,6 @@ struct GeneralCallback {
vtAssert(0, "Should be unreachable");
break;
}

s.skip(active_);
s.skip(u_);
}

bool null() const { return active_ == CallbackEnum::NoCB; }
Expand Down

0 comments on commit b1e27e7

Please sign in to comment.