mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 05:54:32 +00: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