From 066c55d4352a0e7930c5fe069a8148fb7f5e4ecf Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 11 Aug 2015 14:54:00 +0200 Subject: -fsanitize=undefined ...during CppunitTest_sw_filters_test Change-Id: Ifa3e4b6e675f2cd789ff4b3428eaf41572390e7f --- sw/source/filter/ww8/ww8scan.cxx | 4 ++-- 1 file 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( 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(nEnd) - static_cast(rStart); return true; } -- cgit