You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Changed some code showed in LGTM and Coverage
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user