aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-03 10:54:44 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-03 10:54:44 +0000
commitc23a4b69e84bd77c4d589e8d7500c28b21e37fce (patch)
tree4b8d2092f77e5935148d33511251001eb298b8fa
parent15dc327ac96fe547b8bcd7676e76a26fe8c9fd33 (diff)
downloadrspamd-c23a4b69e84bd77c4d589e8d7500c28b21e37fce.tar.gz
rspamd-c23a4b69e84bd77c4d589e8d7500c28b21e37fce.zip
Fix tv_to_msec macro priority.
-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 ed4e6fcca..e7a9f520a 100644
--- a/src/libutil/util.h
+++ b/src/libutil/util.h
@@ -243,7 +243,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 * 1000LLU + (tv)->tv_usec / 1000LLU
+#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);