This commit is contained in:
Igor Pavlov
2008-12-31 00:00:00 +00:00
committed by Kornel Lesiński
parent c1f1243a70
commit 3a524e5ba2
259 changed files with 2792 additions and 4855 deletions

View File

@@ -49,7 +49,7 @@ void CBaseRecordVector::Reserve(int newCapacity)
p = new unsigned char[newSize];
if (p == 0)
throw 1052355;
int numRecordsToMove = _size;
int numRecordsToMove = (_size < newCapacity ? _size : newCapacity);
memcpy(p, _items, _itemSize * numRecordsToMove);
}
delete [](unsigned char *)_items;