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

coverity#706038 Unintended sign extension

Change-Id: I363c90a71225744bacd0bedccf6938da63e0428f
üst aecbffc5
......@@ -1874,10 +1874,10 @@ void ExcelToSc::ReadExtensionNlr( XclImpStream& aIn )
void ExcelToSc::ReadExtensionMemArea( XclImpStream& aIn )
{
sal_uInt16 nCount;
sal_uInt16 nCount(0);
aIn >> nCount;
aIn.Ignore( nCount * ((GetBiff() == EXC_BIFF8) ? 8 : 6) ); // drop the ranges
aIn.Ignore( static_cast<sal_Size>(nCount) * ((GetBiff() == EXC_BIFF8) ? 8 : 6) ); // drop the ranges
}
void ExcelToSc::ReadExtensions( const ExtensionTypeVec& rExtensions,
......
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