coverity#706067 Unintended sign extension

Change-Id: I7b1ace9726c38eafd063e7bd87f463b23fe9d74a
This commit is contained in:
Caolán McNamara
2014-06-19 09:00:59 +01:00
parent 7c97720c2e
commit 6194080c53

View File

@@ -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++ )