Skip to content

Commit

Permalink
hot restart: fix assert side effect (#177)
Browse files Browse the repository at this point in the history
Signed-off-by: David Mackey <[email protected]>
  • Loading branch information
tdmackey authored and mattklein123 committed Oct 27, 2016
1 parent 2701313 commit 0c61c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/exe/hot_restart.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class HotRestartImpl : public HotRestart,

template <class rpc_class, RpcMessageType rpc_type> rpc_class* receiveTypedRpc() {
RpcBase* base_message = receiveRpc(true);
RELEASE_ASSERT(base_message->length_ = sizeof(rpc_class));
RELEASE_ASSERT(base_message->length_ == sizeof(rpc_class));
RELEASE_ASSERT(base_message->type_ == rpc_type);
return reinterpret_cast<rpc_class*>(base_message);
}
Expand Down

0 comments on commit 0c61c70

Please sign in to comment.