diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-05-05 02:00:47 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-05-05 02:00:47 +0200 |
commit | 99e4764890c8e65a846ffa9e6e96ce576c085d51 (patch) | |
tree | db3df701e28bde81d2cb6cec1bc492cc95074859 | |
parent | ace14a9b7d713bf5f413abd257829cb6fb1c027b (diff) |
compat/timer: fix logic error on Linux
-rw-r--r-- | compat/timer.cpp | 2 |
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) }; } |