summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-02-23 12:41:33 -0700
committerXiaohong Bao <bao@lindenlab.com>2011-02-23 12:41:33 -0700
commit1f0cc074823b299ed77b3d6e90e4e8f4ea60415f (patch)
tree1c88effcec6c5c20dd2ee62d73414e1998479d72 /indra
parentbfa25219b899636db74bedc258bc763caf91ddf0 (diff)
fix an assert error
Diffstat (limited to 'indra')
-rw-r--r--indra/llcommon/llmemory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llcommon/llmemory.cpp b/indra/llcommon/llmemory.cpp
index a931cd62ba..08fc1ddfe5 100644
--- a/indra/llcommon/llmemory.cpp
+++ b/indra/llcommon/llmemory.cpp
@@ -572,7 +572,7 @@ void LLPrivateMemoryPool::LLMemoryBlock::init(char* buffer, U32 buffer_size, U32
mSlotSize = slot_size ;
mTotalSlots = buffer_size / mSlotSize ;
- llassert_always(buffer_size / mSlotSize < 256) ; //max number is 256
+ llassert_always(mTotalSlots <= 256) ; //max number is 256
mAllocatedSlots = 0 ;