diff --git a/lib/timing.cpp b/lib/timing.cpp index 1d760ab1..f2e02c1c 100644 --- a/lib/timing.cpp +++ b/lib/timing.cpp @@ -65,7 +65,7 @@ void Util::sleep(int ms) { long long Util::getNTP() { struct timespec t; clock_gettime(CLOCK_REALTIME, &t); - return ((((long long int)t.tv_sec) + 2208988800) << 32) + (t.tv_nsec * 4.2949); + return ((((long long int)t.tv_sec) + 2208988800ll) << 32) + (t.tv_nsec * 4.2949); } /// Gets the current time in milliseconds.