summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-05-05 02:00:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-05-05 02:00:47 +0200
commit99e4764890c8e65a846ffa9e6e96ce576c085d51 (patch)
treedb3df701e28bde81d2cb6cec1bc492cc95074859 /compat
parentace14a9b7d713bf5f413abd257829cb6fb1c027b (diff)
compat/timer: fix logic error on Linux
Diffstat (limited to 'compat')
-rw-r--r--compat/timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/timer.cpp b/compat/timer.cpp
index d8ea242d..84ea44e6 100644
--- a/compat/timer.cpp
+++ b/compat/timer.cpp
@@ -28,7 +28,7 @@ struct timespec Timer::gettime_() const
struct timespec ts; // NOLINT
gettime(&ts);
unsigned long long a = ts.tv_sec, b = state.tv_sec;
- unsigned c = ts.tv_nsec, d = state.tv_nsec;
+ int c = ts.tv_nsec, d = state.tv_nsec;
return { (time_t)(a - b), (long)(c - d) };
}