summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7bab45b)
raw | patch | inline | side by side (parent: 7bab45b)
author | Jan Andres <jandres@gmx.net> | |
Sat, 17 Oct 2015 18:07:10 +0000 (20:07 +0200) | ||
committer | Jan Andres <jandres@gmx.net> | |
Sat, 17 Oct 2015 18:07:10 +0000 (20:07 +0200) |
Add ULL prefix to constant to ensure we get a 64-bit unsigned multiply.
src/daemon/utils_time.h | patch | blob | history |
index 2cc84b5dec4013eb00a720e0132280cafd00aa2a..6566a739bdf8be34b695a3d715dd90b7644e2f23 100644 (file)
--- a/src/daemon/utils_time.h
+++ b/src/daemon/utils_time.h
(tsp)->tv_sec = CDTIME_T_TO_TIME_T (cdt); \
(tsp)->tv_nsec = (long) CDTIME_T_TO_NS ((cdt) & 0x3fffffff); \
} while (0)
-#define TIMESPEC_TO_CDTIME_T(ts) NS_TO_CDTIME_T(1000000000 * (ts)->tv_sec + (ts)->tv_nsec)
+#define TIMESPEC_TO_CDTIME_T(ts) NS_TO_CDTIME_T(1000000000ULL * (ts)->tv_sec + (ts)->tv_nsec)
cdtime_t cdtime (void);