Browse Source

Ensure 16-byte alignment. Fix #2233

pull/2264/head
Max Lv 6 years ago
parent
commit
1c1570b28c
1 changed files with 1 additions and 1 deletions
  1. 2
      src/utils.c

2
src/utils.c

@ -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

Loading…
Cancel
Save