flushCollection();
if (array) {
- kfree((vm_offset_t)array, sizeof(_Element) * capacity);
+ kfree(array, sizeof(_Element) * capacity);
ACCUMSIZE( -(sizeof(_Element) * capacity) );
}
bcopy(array, newArray, oldSize);
bzero(&newArray[capacity], newSize - oldSize);
- kfree((vm_offset_t)array, oldSize);
+ kfree(array, oldSize);
array = newArray;
capacity = newCapacity;
}