From: Ali Saidi Date: Thu, 10 May 2012 23:04:28 +0000 (-0500) Subject: stats: fix bug in assert for 2d vector X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec50c78f8311d37aa57be571be05fbb128ab8bb7;p=gem5.git stats: fix bug in assert for 2d vector --- diff --git a/src/base/statistics.hh b/src/base/statistics.hh index cb63af708..67c09bb6a 100644 --- a/src/base/statistics.hh +++ b/src/base/statistics.hh @@ -1231,7 +1231,7 @@ class Vector2dBase : public DataWrapVec2d operator[](off_type index) { off_type offset = index * y; - assert (index >= 0 && offset + index < size()); + assert (index >= 0 && offset + y <= size()); return Proxy(this->self(), offset, y); }