diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2011-04-04 14:40:07 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2011-04-04 14:40:07 -0600 |
commit | 17854c4e8702febaa8fe4adfbc678f9abaaa52c7 (patch) | |
tree | 4df9d3ed9b704cc707934bdac28f80528c068753 /indra | |
parent | a40ee94cd6768445fdaeffd18bf4392e1398d42b (diff) |
fix an issue on mac and linux, also fix an assertion.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llcommon/llmemory.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llcommon/llmemory.cpp b/indra/llcommon/llmemory.cpp index 62db7e3385..dfc00b5e0a 100644 --- a/indra/llcommon/llmemory.cpp +++ b/indra/llcommon/llmemory.cpp @@ -142,7 +142,7 @@ void* LLMemory::tryToAlloc(void* address, U32 size) } return address ; #else - return 0x01 ; //skip checking + return (void*)0x01 ; //skip checking #endif } @@ -1079,6 +1079,8 @@ LLPrivateMemoryPool::LLMemoryBlock* LLPrivateMemoryPool::LLMemoryChunk::createNe if(new_free_blk_size > 0) //blk still has free space { LLMemoryBlock* next_blk = blk + (buffer_size / mMinBlockSize) ; + next_blk->mPrev = NULL ; + next_blk->mNext = NULL ; next_blk->setBuffer(blk->getBuffer() + buffer_size, new_free_blk_size) ; addToFreeSpace(next_blk) ; } |