Commit b5338097 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

compat: Thread: Let the compiler chose the proper cast

parent b8acd2d2
......@@ -221,7 +221,7 @@ struct hash<medialibrary::compat::Thread::id>
size_t operator()( const medialibrary::compat::Thread::id& id ) const noexcept
{
static_assert( sizeof( id.m_id ) <= sizeof( size_t ), "thread handle is too big" );
return reinterpret_cast<size_t>( id.m_id );
return (size_t)id.m_id;
}
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment