diff --git a/src/thread/WindowsCond.hxx b/src/thread/WindowsCond.hxx index 0f49f71d5..6e8df6473 100644 --- a/src/thread/WindowsCond.hxx +++ b/src/thread/WindowsCond.hxx @@ -78,7 +78,7 @@ public: auto timeout_ms = std::chrono::duration_cast(timeout).count(); return SleepConditionVariableCS(&cond, &lock.mutex()->critical_section, - timeout_ms); + static_cast(timeout_ms)); } template