summaryrefslogtreecommitdiffstats
path: root/include/raul/Semaphore.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-14 21:32:21 -0500
committerDavid Robillard <d@drobilla.net>2023-01-14 21:32:21 -0500
commit06c3b001eb292d579f86813cee293d8587de7d6f (patch)
treea8003937b539f0c07c4a095c840e7469278eb0fd /include/raul/Semaphore.hpp
parent3e37783d428937933845cdf64eff12c8ead14f74 (diff)
downloadraul-06c3b001eb292d579f86813cee293d8587de7d6f.tar.gz
raul-06c3b001eb292d579f86813cee293d8587de7d6f.tar.bz2
raul-06c3b001eb292d579f86813cee293d8587de7d6f.zip
Fix old-style cast
Diffstat (limited to 'include/raul/Semaphore.hpp')
-rw-r--r--include/raul/Semaphore.hpp3
1 files changed, 2 insertions, 1 deletions
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<Rep, Period>& wait)
inline bool
Semaphore::init(unsigned initial)
{
- if (!(_sem = CreateSemaphore(NULL, (LONG)initial, LONG_MAX, NULL))) {
+ if (!(_sem =
+ CreateSemaphore(NULL, static_cast<LONG>(initial), LONG_MAX, NULL))) {
return false;
}