diff --git a/time.cpp b/time.cpp index d54da777..e451e8c3 100644 --- a/time.cpp +++ b/time.cpp @@ -29,5 +29,5 @@ util::nanoseconds (void) { struct timespec t; clock_gettime (CLOCK_REALTIME, &t); - return t.tv_sec * 1000000000 + t.tv_nsec; + return t.tv_sec * 1000000000ULL + t.tv_nsec; }