summaryrefslogtreecommitdiff
path: root/starmath/source/parse.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/parse.cxx')
-rw-r--r--starmath/source/parse.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index 2a3fba1ebb48..c78a0400a385 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -2276,11 +2276,11 @@ void SmParser::Matrix()
r++;
}
- long nRC = r * c;
+ size_t nRC = static_cast<size_t>(r) * c;
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);
}