Skip to content
Permalink
Browse files
One more fixup for sizeof(mtr_t) reduction
Add explicit casts when assigning ulint to m_user_space_id.
  • Loading branch information
dr-m committed Feb 7, 2020
1 parent 91e7b44 commit 0d1ca19
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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<uint32_t>(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<uint32_t>(space->id));
if (space->id) {
m_user_space = space;
}

0 comments on commit 0d1ca19

Please sign in to comment.