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)
|
#elif defined(_WIN32)
|
||||||
ptr = VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
|
ptr = VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
|
||||||
#elif !defined(HAVE_ALIGNED_MALLOC)
|
#elif !defined(HAVE_ALIGNED_MALLOC)
|
||||||
ptr = malloc(size);
|
# error Unsupported configuration
|
||||||
#else
|
#else
|
||||||
# error Bug
|
# error Bug
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user