mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-01 13:38:05 +01:00
Better bounds check
This commit is contained in:
1 parent
4d60b92b7f
commit
a31d3e60d8
1 file changed
+1
-1
@@ -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