COMMON: Correct error message.

The message displays bytes, but capacity is the count of objects, so multiply by their size.
This commit is contained in:
Christoph Mallon 2011-08-07 15:02:43 +02:00
parent 79729d03e0
commit c876e87efc

View file

@ -274,7 +274,7 @@ protected:
if (capacity) {
_storage = new T[capacity];
if (!_storage)
::error("Common::Array: failure to allocate %u bytes", capacity);
::error("Common::Array: failure to allocate %u bytes", capacity * (uint)sizeof(T));
} else {
_storage = 0;
}