summaryrefslogtreecommitdiff
path: root/starmath/source/ooxmlexport.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-22 10:13:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-24 12:02:22 +0100
commitab0b2b44f53652590eb290f6f4adf2ddde5a700d (patch)
tree94327c67f16893e00e802a46e77d760a695d18a0 /starmath/source/ooxmlexport.cxx
parent617a2feff0978d06aa2759038715dfde90d369db (diff)
coverity#1426873 Unintended sign extension
and a bunch of others Change-Id: I110545b74bfc71b17e2e10edc95bc4bb5aa5651c Reviewed-on: https://gerrit.libreoffice.org/46957 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath/source/ooxmlexport.cxx')
-rw-r--r--starmath/source/ooxmlexport.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/ooxmlexport.cxx b/starmath/source/ooxmlexport.cxx
index 7e731fb717ca..e718a4ed7ca5 100644
--- a/starmath/source/ooxmlexport.cxx
+++ b/starmath/source/ooxmlexport.cxx
@@ -437,10 +437,10 @@ void SmOoxmlExport::HandleSubSupScriptInternal( const SmSubSupNode* pNode, int n
void SmOoxmlExport::HandleMatrix( const SmMatrixNode* pNode, int nLevel )
{
m_pSerializer->startElementNS( XML_m, XML_m, FSEND );
- for( int row = 0; row < pNode->GetNumRows(); ++row )
+ for (size_t row = 0; row < pNode->GetNumRows(); ++row)
{
m_pSerializer->startElementNS( XML_m, XML_mr, FSEND );
- for( int col = 0; col < pNode->GetNumCols(); ++col )
+ for (size_t col = 0; col < pNode->GetNumCols(); ++col)
{
m_pSerializer->startElementNS( XML_m, XML_e, FSEND );
if( const SmNode* node = pNode->GetSubNode( row * pNode->GetNumCols() + col ))