Bug 534136 part 4bis: Fix review comments from peterv that should have been in initial patch.

This commit is contained in:
Jonas Sicking
2010-03-08 08:03:55 -08:00
parent ff1bc7a61a
commit 0d0238b01e
2 changed files with 8 additions and 1 deletions

View File

@@ -269,7 +269,9 @@ AtomImpl::AtomImpl(nsStringBuffer* aStringBuffer, PRUint32 aLength)
aStringBuffer->AddRef();
NS_ASSERTION(mString[mLength] == PRUnichar(0), "null terminated");
NS_ASSERTION(aStringBuffer && aStringBuffer->StorageSize() == (mLength+1) * 2, "correct storage");
NS_ASSERTION(aStringBuffer &&
aStringBuffer->StorageSize() == (mLength+1) * sizeof(PRUnichar),
"correct storage");
}
AtomImpl::~AtomImpl()