Remove (invalid) TODO note. Rename variable more meaningfully. Remove stray whitespace that crept into previous commit.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25927 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent
2008-06-11 14:29:59 +00:00
parent 1b007c20ad
commit 819eb21bbf
+5 -8
View File
@@ -437,14 +437,11 @@ BList::Resize(int32 count)
// by doubling the existing size
// until we can hold at least count items
int32 newSize = fBlockSize;
// TODO: determine why modifying count directly via
// if (count <= 0) count = fBlockSize;
// results in this code segfaulting the registrar while using the local var 'c' does not.
int32 c = count;
if (c <= 0)
c = fBlockSize;
if ((size_t)c != fPhysicalSize) {
while (newSize < c)
int32 targetSize = count;
if (targetSize <= 0)
targetSize = fBlockSize;
if ((size_t)targetSize != fPhysicalSize) {
while (newSize < targetSize)
newSize <<= 1;
}