From c3e189c6121c89a687724e9cf4eca1b8a7f50294 Mon Sep 17 00:00:00 2001 From: gallexme Date: Fri, 31 Jul 2020 11:20:34 +0200 Subject: [PATCH] thread.cpp: suppress narrowing conversions warnings (#216) --- src/uvw/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uvw/thread.cpp b/src/uvw/thread.cpp index c3287d88..1b7815f4 100644 --- a/src/uvw/thread.cpp +++ b/src/uvw/thread.cpp @@ -40,7 +40,7 @@ UVW_INLINE bool Thread::run() noexcept { UVW_INLINE bool Thread::run(Flags opts, std::size_t stack) noexcept { - uv_thread_options_t params{opts, stack}; + uv_thread_options_t params{static_cast(opts), stack}; return (0 == uv_thread_create_ex(get(), ¶ms, &createCallback, this)); }