summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-23 15:51:00 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 15:51:00 +0000
commitbbaad0e03d04c2b2606823ce85f12a80803ed5af (patch)
tree45528351c9b4dd5f3f227ced557cff5cbf26b377 /sw
parent8444cd780268afba0b38840370acd07966d630d5 (diff)
coverity#736165
Change-Id: I04c1474b2042deb3027369fe1102aef2eb5320a4
Diffstat (limited to 'sw')
-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 76b44d334c7a..743eec85b73d 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -2183,7 +2183,8 @@ void WW8PLCF::GeneratePLCF(SvStream& rSt, sal_Int32 nPN, sal_Int32 ncpN)
{
failure = true;
- sal_Size nLastFkpPos = ( ( nPN + nIMax - 1 ) << 9 );
+ sal_Size nLastFkpPos = nPN + nIMax - 1;
+ nLastFkpPos = nLastFkpPos << 9;
// Anz. Fkp-Eintraege des letzten Fkp
if (!checkSeek(rSt, nLastFkpPos + 511))
break;