提交 aade9b70 编写于 作者: B Behdad Esfahbod

[pool] Fix alignment assertion

I *think* it should fix https://github.com/harfbuzz/harfbuzz/issues/1901

Ie. if on a system, alignof(void*) < sizeof(void*)...
上级 b31d627f
......@@ -77,7 +77,7 @@ struct hb_pool_t
static_assert (ChunkLen > 1, "");
static_assert (sizeof (T) >= sizeof (void *), "");
static_assert (alignof (T) % sizeof (void *) == 0, "");
static_assert (alignof (T) % alignof (void *) == 0, "");
struct chunk_t
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册