mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-11 03:46:55 +01:00
Better bounds check
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user