mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 20:15:19 -07:00
We always need to allocate aligned memory
This commit is contained in:
parent
9b27460618
commit
e7a84c9e84
@ -315,7 +315,7 @@ _alloc_aligned(const size_t size)
|
||||
#elif defined(_WIN32)
|
||||
ptr = VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
|
||||
#elif !defined(HAVE_ALIGNED_MALLOC)
|
||||
ptr = malloc(size);
|
||||
# error Unsupported configuration
|
||||
#else
|
||||
# error Bug
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user