Changed some code showed in LGTM and Coverage
This commit is contained in:
parent
584ca0f156
commit
6cbaf7662f
55 changed files with 94 additions and 202 deletions
|
|
@ -611,7 +611,7 @@ PoolAllocator::PoolAllocator(void *p_mem, int p_size, int p_align, bool p_needs_
|
|||
PoolAllocator::PoolAllocator(int p_align, int p_size, bool p_needs_locking, int p_max_entries) {
|
||||
|
||||
ERR_FAIL_COND(p_align < 1);
|
||||
mem_ptr = Memory::alloc_static(p_size + p_align, "PoolAllocator()");
|
||||
mem_ptr = Memory::alloc_static(p_size + p_align, true);
|
||||
uint8_t *mem8 = (uint8_t *)mem_ptr;
|
||||
uint64_t ofs = (uint64_t)mem8;
|
||||
if (ofs % p_align)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue