Added allocator tests.

This commit is contained in:
Бранимир Караџић
2022-11-04 19:09:23 -07:00
parent 20efa22f18
commit a2af648097
2 changed files with 79 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ namespace bx
inline void* alignedAlloc(AllocatorI* _allocator, size_t _size, size_t _align, const char* _file, uint32_t _line)
{
const size_t align = max(_align, sizeof(uint32_t) );;
const size_t align = max(_align, sizeof(uint32_t) );
const size_t total = _size + align;
uint8_t* ptr = (uint8_t*)alloc(_allocator, total, 0, _file, _line);
uint8_t* aligned = (uint8_t*)alignPtr(ptr, sizeof(uint32_t), align);