diff options
Diffstat (limited to 'compat')
-rw-r--r-- | compat/mutex.hpp | 1 | ||||
-rw-r--r-- | compat/sleep.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/compat/mutex.hpp b/compat/mutex.hpp index e4d0fee6..54758a08 100644 --- a/compat/mutex.hpp +++ b/compat/mutex.hpp @@ -16,6 +16,7 @@ public: mutex& operator=(const mutex& datum); mutex(const mutex& datum); explicit mutex(RecursionMode m); + mutex() : mutex{NonRecursive} {} QMutex* operator&() const noexcept; explicit operator QMutex*() const noexcept; diff --git a/compat/sleep.cpp b/compat/sleep.cpp index 5178ae2f..e64e6254 100644 --- a/compat/sleep.cpp +++ b/compat/sleep.cpp @@ -14,7 +14,7 @@ namespace portable { #ifdef _WIN32 - Sleep(milliseconds); + Sleep((unsigned)milliseconds); #else usleep(unsigned(milliseconds) * 1000U); // takes microseconds #endif |