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:
parent
79729d03e0
commit
c876e87efc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue