changeset 2972c71fccd5 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=2972c71fccd5
description:
stats: fix bug in assert for 2d vector
diffstat:
src/base/statistics.hh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r c264de5ccb61 -r 2972c71fccd5 src/base/statistics.hh
--- a/src/base/statistics.hh Thu May 10 18:04:28 2012 -0500
+++ b/src/base/statistics.hh Thu May 10 18:04:28 2012 -0500
@@ -1231,7 +1231,7 @@
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);
}
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev