mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed unix compilation errors
This commit is contained in:
parent
b92d2972f6
commit
ce89399824
6 changed files with 176 additions and 11 deletions
|
@ -108,7 +108,7 @@ void* MEM_TempAlloc::CreateBlock(size_t len)
|
|||
// allocate a new block
|
||||
tempBlock_t* prev_block = m_CurrentMemoryBlock;
|
||||
m_CurrentMemoryBlock = (tempBlock_t*)MEM_TempAllocate(
|
||||
sizeof(tempBlock_t) + max(m_BlockSize, len));
|
||||
sizeof(tempBlock_t) + Q_max(m_BlockSize, len));
|
||||
m_CurrentMemoryBlock->prev = prev_block;
|
||||
return m_CurrentMemoryBlock->GetData();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue