Kaydet (Commit) d3a5b4e8 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#706063 Unintended sign extension

Change-Id: Idaec46756ef22bcec1335c219fdc3ebf64c43fc3
üst 3631f5b3
...@@ -2276,11 +2276,11 @@ void SmParser::Matrix() ...@@ -2276,11 +2276,11 @@ void SmParser::Matrix()
r++; r++;
} }
long nRC = r * c; size_t nRC = static_cast<size_t>(r) * c;
ExpressionArray.resize(nRC); ExpressionArray.resize(nRC);
for (sal_uInt16 i = 0; i < (nRC); i++) for (size_t i = 0; i < (nRC); ++i)
{ {
ExpressionArray[(nRC) - (i + 1)] = lcl_popOrZero(m_aNodeStack); ExpressionArray[(nRC) - (i + 1)] = lcl_popOrZero(m_aNodeStack);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment