diff options
author | Ali Saidi <Ali.Saidi@ARM.com> | 2012-05-10 18:04:28 -0500 |
---|---|---|
committer | Ali Saidi <Ali.Saidi@ARM.com> | 2012-05-10 18:04:28 -0500 |
commit | ec50c78f8311d37aa57be571be05fbb128ab8bb7 (patch) | |
tree | b713c39a71dbb602879a30eab7fd2615248d0c23 | |
parent | 1965a89873d95333b31d83438ea468e2c96401f9 (diff) | |
download | gem5-ec50c78f8311d37aa57be571be05fbb128ab8bb7.tar.xz |
stats: fix bug in assert for 2d vector
-rw-r--r-- | src/base/statistics.hh | 2 |
1 files changed, 1 insertions, 1 deletions
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<Derived, Vector2dInfoProxy> 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); } |