Allocate the appropriate amount in the aligned allocator

This commit is contained in:
Chris Robinson 2018-11-04 15:21:03 -08:00
parent 087fdd3ca9
commit 26f7007507

View File

@ -119,7 +119,7 @@ public:
};
pointer allocate(size_type n, const void* = nullptr)
{ return reinterpret_cast<T*>(al_malloc(alignment, n)); }
{ return reinterpret_cast<T*>(al_malloc(alignment, n*sizeof(T))); }
void deallocate(pointer p, size_type)
{ al_free(p); }