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

Better bounds check

This commit is contained in:
paboyle 2018-03-09 18:10:21 +00:00
parent 4d60b92b7f
commit a31d3e60d8

View File

@ -58,7 +58,7 @@ public:
}
accelerator_inline void resize(size_type sz,const value &val) {
assert(sz>=0);
assert(sz<MaxEntries);
assert(sz<=MaxEntries);
_size = sz;
for(int s=0;s<sz;s++) _data[s]=val;
}