thread.cpp: suppress narrowing conversions warnings (#216)

This commit is contained in:
gallexme 2020-07-31 11:20:34 +02:00 committed by GitHub
parent 0b329720bf
commit c3e189c612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(), &params, &createCallback, this));
}