From 06c3b001eb292d579f86813cee293d8587de7d6f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Jan 2023 21:32:21 -0500 Subject: Fix old-style cast --- include/raul/Semaphore.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/raul') diff --git a/include/raul/Semaphore.hpp b/include/raul/Semaphore.hpp index 7d70f60..6194a5e 100644 --- a/include/raul/Semaphore.hpp +++ b/include/raul/Semaphore.hpp @@ -153,7 +153,8 @@ Semaphore::timed_wait(const std::chrono::duration& wait) inline bool Semaphore::init(unsigned initial) { - if (!(_sem = CreateSemaphore(NULL, (LONG)initial, LONG_MAX, NULL))) { + if (!(_sem = + CreateSemaphore(NULL, static_cast(initial), LONG_MAX, NULL))) { return false; } -- cgit v1.2.1