Index: ipc/ipc_message_macros.h |
diff --git a/ipc/ipc_message_macros.h b/ipc/ipc_message_macros.h |
index 38eedcf6a5fe26a61e68471192058cf4a75f61e3..9b3f73262cc961100772379e13268f9f91017025 100644 |
--- a/ipc/ipc_message_macros.h |
+++ b/ipc/ipc_message_macros.h |
@@ -818,7 +818,8 @@ LogFunctionMap g_log_function_mapping; |
class LoggerRegisterHelper##msg_class { \ |
public: \ |
LoggerRegisterHelper##msg_class() { \ |
- g_log_function_mapping[msg_class::ID] = msg_class::Log; \ |
+ const uint32 msg_id = static_cast<uint32>(msg_class::ID); \ |
+ g_log_function_mapping[msg_id] = msg_class::Log; \ |
} \ |
}; \ |
LoggerRegisterHelper##msg_class g_LoggerRegisterHelper##msg_class; |