summaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-20 23:20:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-20 23:20:42 +0100
commite67939617a9c3d6bb12aad6a77ae901039186b92 (patch)
treedc634ddade8b218ad732b813198e6a76dfc1823a /src/libutil
parent460f7a6230c3aaf7c4835230ef5e5adf2098299c (diff)
downloadrspamd-e67939617a9c3d6bb12aad6a77ae901039186b92.tar.gz
rspamd-e67939617a9c3d6bb12aad6a77ae901039186b92.zip
Try to fix large timevals.
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h
index e2e20da62..1b95ab8a0 100644
--- a/src/libutil/util.h
+++ b/src/libutil/util.h
@@ -251,7 +251,7 @@ gsize rspamd_strlcpy_tolower (gchar *dst, const gchar *src, gsize siz);
#define double_to_tv(dbl, tv) do { (tv)->tv_sec = (int)(dbl); (tv)->tv_usec = \
((dbl) - (int)(dbl)) * 1000 * 1000; \
} while (0)
-#define tv_to_msec(tv) (tv)->tv_sec * 1000 + (tv)->tv_usec / 1000
+#define tv_to_msec(tv) (tv)->tv_sec * 1000LLU + (tv)->tv_usec / 1000LLU
/* Compare two emails for building emails tree */
gint compare_email_func (gconstpointer a, gconstpointer b);