1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Bound check improvement

This commit is contained in:
paboyle 2018-03-09 20:00:46 +00:00
parent a31d3e60d8
commit ff761ea4e6

View File

@ -53,7 +53,7 @@ public:
accelerator_inline void clear(void) { resize(0);}
accelerator_inline void resize(size_type sz) {
assert(sz>=0);
assert(sz<MaxEntries);
assert(sz<=MaxEntries);
_size = sz;
}
accelerator_inline void resize(size_type sz,const value &val) {