From 0d1ca1938318d6723c8799e195940c181eec07c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Fri, 7 Feb 2020 13:44:13 +0200 Subject: [PATCH] One more fixup for sizeof(mtr_t) reduction Add explicit casts when assigning ulint to m_user_space_id. --- storage/innobase/include/mtr0mtr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/innobase/include/mtr0mtr.h b/storage/innobase/include/mtr0mtr.h index 8a546690a90..a0935c0db90 100644 --- a/storage/innobase/include/mtr0mtr.h +++ b/storage/innobase/include/mtr0mtr.h @@ -193,7 +193,7 @@ struct mtr_t { fil_space_t* set_named_space_id(ulint space_id) { ut_ad(!m_user_space_id); - ut_d(m_user_space_id = space_id); + ut_d(m_user_space_id = static_cast(space_id)); if (!space_id) { return fil_system.sys_space; } else { @@ -211,7 +211,7 @@ struct mtr_t { void set_named_space(fil_space_t* space) { ut_ad(!m_user_space_id); - ut_d(m_user_space_id = space->id); + ut_d(m_user_space_id = static_cast(space->id)); if (space->id) { m_user_space = space; }