From 0c61c70c2a22550243d15b58e4717e742e908862 Mon Sep 17 00:00:00 2001 From: TD Mackey Date: Thu, 27 Oct 2016 09:12:15 -0700 Subject: [PATCH] hot restart: fix assert side effect (#177) Signed-off-by: David Mackey --- source/exe/hot_restart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/exe/hot_restart.h b/source/exe/hot_restart.h index d0f6c3c342be..ca2ad43d2735 100644 --- a/source/exe/hot_restart.h +++ b/source/exe/hot_restart.h @@ -148,7 +148,7 @@ class HotRestartImpl : public HotRestart, template 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(base_message); }