diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-11 14:54:00 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-11 14:54:16 +0200 |
commit | 066c55d4352a0e7930c5fe069a8148fb7f5e4ecf (patch) | |
tree | 3b64248adcc736511fbdece5ad18c10fee5e3eb3 /sw | |
parent | d86b3e6ff80e0ef6c9bfd1d8ad9626ef3319cc0f (diff) |
-fsanitize=undefined
...during CppunitTest_sw_filters_test
Change-Id: Ifa3e4b6e675f2cd789ff4b3428eaf41572390e7f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index dc5366c21e39..c093976b312e 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -2172,7 +2172,7 @@ void WW8PLCF::GeneratePLCF(SvStream& rSt, sal_Int32 nPN, sal_Int32 ncpN) failure = true; // construct FC entries // first FC entry of each Fkp - if (checkSeek(rSt, ( nPN + i ) << 9 )) + if (checkSeek(rSt, static_cast<sal_uInt32>( nPN + i ) << 9 )) continue; WW8_CP nFc(0); rSt.ReadInt32( nFc ); @@ -6683,7 +6683,7 @@ bool WW8PLCF_HdFt::GetTextPosExact(short nIdx, WW8_CP& rStart, long& rLen) aPLCF.SetIdx( nIdx ); // Lookup suitable CP aPLCF.Get( rStart, nEnd, pData ); - rLen = nEnd - rStart; + rLen = static_cast<sal_uInt32>(nEnd) - static_cast<sal_uInt32>(rStart); return true; } |