coverity#706067 Unintended sign extension
Change-Id: I7b1ace9726c38eafd063e7bd87f463b23fe9d74a
This commit is contained in:
@@ -578,8 +578,9 @@ void IcnGridMap_Impl::Create_Impl()
|
||||
else
|
||||
_nGridCols += 50;
|
||||
|
||||
_pGridMap = new bool[ _nGridRows * _nGridCols];
|
||||
memset( (void*)_pGridMap, 0, _nGridRows * _nGridCols );
|
||||
size_t nCellCount = static_cast<size_t>(_nGridRows) * _nGridCols;
|
||||
_pGridMap = new bool[nCellCount];
|
||||
memset(_pGridMap, 0, nCellCount);
|
||||
|
||||
const size_t nCount = _pView->aEntries.size();
|
||||
for( size_t nCur=0; nCur < nCount; nCur++ )
|
||||
|
Reference in New Issue
Block a user