diff options
author | jcid <devnull@localhost> | 2008-10-30 21:02:35 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-10-30 21:02:35 +0100 |
commit | ad8be90c77033d44cdf86f77263575ffbf5f0ea2 (patch) | |
tree | 046e56d296c46fd47a75cd1274c4d65d40bd7672 | |
parent | 3309d5e5590c510f8518cb2cce4cd555df2211e5 (diff) |
.
-rw-r--r-- | lout/misc.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lout/misc.hh b/lout/misc.hh index f9184bf3..a3f5b3d3 100644 --- a/lout/misc.hh +++ b/lout/misc.hh @@ -158,7 +158,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; } |