diff options
author | Chris Robinson <[email protected]> | 2019-06-03 22:58:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-06-03 22:58:56 -0700 |
commit | f0bc9d8a9b45a86cf0736a3f118b28ae6fdb90f0 (patch) | |
tree | 268a2f8e04f8b95b3141c2155d97694c0a45f948 /Alc/hrtf.cpp | |
parent | c76fb714ccd44584f18c1be7c8366c462c493831 (diff) |
Improve alignment handling for the alignment allocator
Diffstat (limited to 'Alc/hrtf.cpp')
-rw-r--r-- | Alc/hrtf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/hrtf.cpp b/Alc/hrtf.cpp index 45f63c11..d1029aeb 100644 --- a/Alc/hrtf.cpp +++ b/Alc/hrtf.cpp @@ -66,7 +66,7 @@ struct HrtfHandle { std::unique_ptr<HrtfHandle> HrtfHandle::Create(size_t fname_len) { - void *ptr{al_calloc(DEF_ALIGN, HrtfHandle::Sizeof(fname_len))}; + void *ptr{al_calloc(alignof(HrtfHandle), HrtfHandle::Sizeof(fname_len))}; return std::unique_ptr<HrtfHandle>{new (ptr) HrtfHandle{fname_len}}; } |