Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
b5338097
Commit
b5338097
authored
Aug 10, 2016
by
Hugo Beauzée-Luyssen
Browse files
compat: Thread: Let the compiler chose the proper cast
parent
b8acd2d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/compat/Thread.h
View file @
b5338097
...
...
@@ -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
;
}
};
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment