thread.cpp: suppress narrowing conversions warnings (#216)
This commit is contained in:
parent
0b329720bf
commit
c3e189c612
@ -40,7 +40,7 @@ UVW_INLINE bool Thread::run() noexcept {
|
||||
|
||||
|
||||
UVW_INLINE bool Thread::run(Flags<Options> opts, std::size_t stack) noexcept {
|
||||
uv_thread_options_t params{opts, stack};
|
||||
uv_thread_options_t params{static_cast<unsigned int>(opts), stack};
|
||||
return (0 == uv_thread_create_ex(get(), ¶ms, &createCallback, this));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user