thread/WindowsCond: add explicit cast

This commit is contained in:
Max Kellermann 2022-07-14 13:04:07 +02:00
parent 4953a57c1c
commit 188f7ab795

View File

@ -78,7 +78,7 @@ public:
auto timeout_ms = std::chrono::duration_cast<std::chrono::milliseconds>(timeout).count();
return SleepConditionVariableCS(&cond,
&lock.mutex()->critical_section,
timeout_ms);
static_cast<DWORD>(timeout_ms));
}
template<typename M, typename P>