summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-17 12:15:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-17 13:59:39 +0100
commitdaa287bdf18dfefca7b889091a1f250d958b8c82 (patch)
tree8daf0045c3baedc4e0aa31bc9486226f9df0fca5 /sc
parent8a4dc64c04c9b0d6dbd1ce1699f793beeecfe95f (diff)
coverity#706049 Unintended sign extension
Change-Id: Idb9c4aa6475fcd9edd0d76c06509df182bd2111c
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xestring.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xestring.cxx b/sc/source/filter/excel/xestring.cxx
index 685d4479ca25..0f052a70a867 100644
--- a/sc/source/filter/excel/xestring.cxx
+++ b/sc/source/filter/excel/xestring.cxx
@@ -233,7 +233,7 @@ sal_uInt16 XclExpString::GetHeaderSize() const
sal_Size XclExpString::GetBufferSize() const
{
- return mnLen * (mbIsUnicode ? 2 : 1);
+ return static_cast<sal_Size>(mnLen) * (mbIsUnicode ? 2 : 1);
}
sal_Size XclExpString::GetSize() const