commit | c84e18eaa1ca57a7e42ea6e5dfe29c6fee80d5e4 | [log] [tgz] |
---|---|---|
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Mon Sep 07 08:20:45 2015 +0000 |
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Mon Sep 07 08:20:45 2015 +0000 |
tree | 1626599c918a7eff588bfe1f095680e650a93f61 | |
parent | 3933603488530c73a0e5a7485211c30a8c8a05f0 [diff] [blame] |
Always use posix_memalign on OS X for consistency. No functional change. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15636 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/tests/malloc.h b/tests/malloc.h index 12afdf4..146790e 100644 --- a/tests/malloc.h +++ b/tests/malloc.h
@@ -16,7 +16,7 @@ void* x; #if defined(VGO_darwin) // Darwin lacks memalign, but its malloc is always 16-aligned anyway. - x = malloc(szB); + posix_memalign((void **)&x, 16, szB); #else x = memalign(16, szB); #endif