summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-03-04 20:49:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-03-05 09:54:45 +0100
commit47078995c2aac781c7af5c5a36898a55fbe5cc13 (patch)
tree62b066ca8c5b3f64627201ea95b6cec97baffad5
parent69e890b1691b6705520f407e4bbf5b579356f3e7 (diff)
Better types for nFc and nLen
...given that they get assigned with values of those types. This change has no actual effect on the results, but silences Clang -fsanitize=implicit-signed-integer-truncation warnings like "implicit conversion from type 'long' of value -671088640 (64-bit, signed) to type 'sal_uInt32' (aka 'unsigned int') changed the value to 3623878656 (32-bit, unsigned)". Change-Id: I763a9d85b9e40797312688551206c308fc3d36e3 Reviewed-on: https://gerrit.libreoffice.org/68705 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 4d5ccaf9a1ea..1b747d1c5b95 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -3953,7 +3953,8 @@ void WW8PLCFx_SubDoc::advance()
WW8PLCFx_FLD::WW8PLCFx_FLD( SvStream* pSt, const WW8Fib& rMyFib, short nType)
: WW8PLCFx(rMyFib, true), rFib(rMyFib)
{
- long nFc, nLen;
+ WW8_FC nFc;
+ sal_Int32 nLen;
switch( nType )
{