]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Try to fix large timevals.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 20 Sep 2014 22:20:42 +0000 (23:20 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 20 Sep 2014 22:20:42 +0000 (23:20 +0100)
src/libutil/util.h

index e2e20da62aa83e1f8089a1818ea53196edc940e4..1b95ab8a0c0c0c4e3e8b8762617ef49e70df522d 100644 (file)
@@ -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);