summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/qtime.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/qtime.h b/lib/qtime.h
index a9e635d1..24c3eb8e 100644
--- a/lib/qtime.h
+++ b/lib/qtime.h
@@ -59,7 +59,8 @@ typedef int64_t qtime_t ;
#define TIMEVAL_SECOND 1000000
/* Macro to convert time in seconds to a qtime_t */
-#define QTIME(s) ((qtime_t)((s) * QTIME_SECOND))
+/* Note that the time to convert may be a float. */
+#define QTIME(s) ((qtime_t)((s) * (qtime_t)QTIME_SECOND))
Inline qtime_t
timespec2qtime(struct timespec* p_ts) ;