@@ -119,12 +119,12 @@ if (previousPool != nil) previousPool->nextPool = self; size = GROW_SIZE; - objects = [self allocMemoryForNItems: GROW_SIZE - ofSize: sizeof(id)]; + objects = [self allocMemoryWithItemSize: sizeof(id) + count: GROW_SIZE]; } @catch (id e) { [self release]; @throw e; } @@ -133,12 +133,12 @@ - (void)_addObject: (id)object { if (count + 1 > size) { objects = [self resizeMemory: objects - toNItems: size + GROW_SIZE - ofSize: sizeof(id)]; + itemSize: sizeof(id) + count: size + GROW_SIZE]; size += GROW_SIZE; } objects[count] = object; count++;