From c876e87efc574a646268bd57428cdcef87a517a8 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sun, 7 Aug 2011 15:02:43 +0200 Subject: COMMON: Correct error message. The message displays bytes, but capacity is the count of objects, so multiply by their size. --- common/array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/array.h b/common/array.h index bc378d5233..18cecfb98f 100644 --- a/common/array.h +++ b/common/array.h @@ -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; } -- cgit v1.2.3