summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/excrecds.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/excrecds.cxx')
-rw-r--r--sc/source/filter/excel/excrecds.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/excrecds.cxx b/sc/source/filter/excel/excrecds.cxx
index 035e4d1ed47a..fc114ec5a1eb 100644
--- a/sc/source/filter/excel/excrecds.cxx
+++ b/sc/source/filter/excel/excrecds.cxx
@@ -515,7 +515,7 @@ void XclExpSheetProtection::SaveXml( XclExpXmlStream& rStrm )
{
nHash = ((aHash[0] << 8) & 0xFFFF);
nHash |= (aHash[1] & 0xFF);
- sHash = OString::valueOf( nHash, 16 );
+ sHash = OString::valueOf( static_cast<sal_Int32>(nHash), 16 );
}
sax_fastparser::FSHelperPtr& rWorksheet = rStrm.GetCurrentStream();
rWorksheet->singleElement( XML_sheetProtection,