From ec50c78f8311d37aa57be571be05fbb128ab8bb7 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Thu, 10 May 2012 18:04:28 -0500 Subject: [PATCH] stats: fix bug in assert for 2d vector --- src/base/statistics.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }