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:
parent
4d60b92b7f
commit
a31d3e60d8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user