From 188f7ab79570e80c42bab799606d4fbf60bfb129 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 14 Jul 2022 13:04:07 +0200 Subject: [PATCH] thread/WindowsCond: add explicit cast --- src/thread/WindowsCond.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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