diff options
Diffstat (limited to 'include/raul/Semaphore.hpp')
-rw-r--r-- | include/raul/Semaphore.hpp | 3 |
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; } |