aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-12-06 11:39:54 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-12-06 11:39:54 +0000
commitdf914aa64f9f9b6c5a472a438f5d6f7991d26068 (patch)
tree44dec31e97e15504f3d6ef4fd87757800ef97892 /src/libutil/str_util.h
parentd2bad43bb3559c3a14536ca14274210924906e5e (diff)
downloadrspamd-df914aa64f9f9b6c5a472a438f5d6f7991d26068.tar.gz
rspamd-df914aa64f9f9b6c5a472a438f5d6f7991d26068.zip
[Minor] Polish alignment macros
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r--src/libutil/str_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h
index b08dd56ad..47abf062e 100644
--- a/src/libutil/str_util.h
+++ b/src/libutil/str_util.h
@@ -473,7 +473,7 @@ gsize rspamd_memspn (const gchar *s, const gchar *e, gsize len);
* Check if a pointer is aligned; n must be power of two
*/
#define rspamd_is_aligned(p, n) (((uintptr_t)(p) & ((uintptr_t)(n) - 1)) == 0)
-#define rspamd_is_aligned_as(p, v) rspamd_is_aligned(p, _Alignof(__typeof((v))))
+#define rspamd_is_aligned_as(p, v) rspamd_is_aligned(p, RSPAMD_ALIGNOF(__typeof((v))))
gboolean rspamd_str_has_8bit (const guchar *beg, gsize len);
struct UConverter;