summaryrefslogtreecommitdiff
path: root/lout/misc.hh
diff options
context:
space:
mode:
Diffstat (limited to 'lout/misc.hh')
-rw-r--r--lout/misc.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lout/misc.hh b/lout/misc.hh
index 8cd67f78..730a47a4 100644
--- a/lout/misc.hh
+++ b/lout/misc.hh
@@ -166,7 +166,7 @@ public:
*/
inline T* getRef (int i) {
if (BOUND_CHECKING)
- assert (i >= 0 && i < this->num);
+ assert (i >= 0 && this->num - i > 0);
return array + i;
}