Ensure 16-byte alignment. Fix #2233

This commit is contained in:
Max Lv
2018-11-28 16:23:27 +08:00
parent c8ea784ded
commit 1c1570b28c
+1 -1
View File
@@ -247,7 +247,7 @@ ss_align(size_t size)
void *tmp = NULL;
#ifdef HAVE_POSIX_MEMALIGN
/* ensure 16 byte alignment */
err = posix_memalign(&tmp, sizeof(void *), size);
err = posix_memalign(&tmp, 16, size);
#else
err = -1;
#endif