summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-16 06:02:14 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:49:13 +0100
commit1e04979c3452d4eac633677876a88f9411a1153d (patch)
tree99a126a9d2647fd25a8ef2adbab6bb84f2c97dfb /compat
parent03d28dde1635e36508cff1f9eabc265cdb5febb9 (diff)
cruft only
Diffstat (limited to 'compat')
-rw-r--r--compat/mutex.hpp1
-rw-r--r--compat/sleep.cpp2
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