diff options
author | Nikolay Bogoychev <nheart@gmail.com> | 2020-01-22 20:18:16 +0300 |
---|---|---|
committer | Nikolay Bogoychev <nheart@gmail.com> | 2020-01-22 20:18:16 +0300 |
commit | 4eede3b46b07ff9a929c7c299408fc989055dc4f (patch) | |
tree | 4c1be928e2e64a48ad87058196a14310a62c201f | |
parent | 4f7a50b504b0bd3bbb8f0f9804ef8c4bfa97925e (diff) |
typos
-rw-r--r-- | aligned.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ template <class T> class AlignedVector { #ifdef __APPLE__ posix_memalign(reinterpret_cast<void **>(&mem_), 64, size * sizeof(T)); #else - mem_ = aligned_alloc(64, (size * sizeof(T) + 63) & ~63))); # pedantic requirements for memory size on aligned_alloc in case it's not just a call to posix_memalign + mem_ = reinterpret_cast<T*>(aligned_alloc(64, (size * sizeof(T) + 63) & ~63)); // pedantic requirements for memory size on aligned_alloc in case it's not just a call to posix_memalign #endif } |