From 99e4764890c8e65a846ffa9e6e96ce576c085d51 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 5 May 2019 02:00:47 +0200 Subject: compat/timer: fix logic error on Linux --- compat/timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }; } -- cgit v1.2.3