Skip to content

Commit

Permalink
#2092: use a reinterpret cast and makeRunnableVoid
Browse files Browse the repository at this point in the history
  • Loading branch information
stmcgovern committed May 8, 2023
1 parent f823b5c commit 71acabb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vt/objgroup/manager.static.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ decltype(auto) invoke(
auto const& elm_id = holder->getElmID();
auto elm = holder->getPtr();
auto lb_data = &holder->getLBData();
runnable::makeRunnable(std::move(msg.msg_), false, han, this_node)
runnable::makeRunnableVoid(false, han, this_node)
.withObjGroup(elm)
.withLBData(lb_data, elm_id)
.runLambda(f, static_cast<ObjT*>(elm), msg.get());
Expand Down
2 changes: 1 addition & 1 deletion src/vt/runnable/make_runnable.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ struct RunnableMaker {
template <typename ElmT>
RunnableMaker&& withLBData(ElmT* elm) {
#if vt_check_enabled(lblite)
impl_->addContextLB(elm, impl_->getMsg().get());
impl_->addContextLB(elm, reinterpret_cast<MsgT*>(impl_->getMsg().get()));
#endif
return std::move(*this);
}
Expand Down

0 comments on commit 71acabb

Please sign in to comment.