summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-05 17:15:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-05 17:22:01 +0000
commit3fab95491940160a1ee288491090b2f8b5875731 (patch)
treead5f4cf1bf217144daf427980f8a2f9274d02ae2 /sw
parent4e59046114105cada50cea2848eb083b23a5df8b (diff)
asan: cast is totally wrong here
Change-Id: I7341813b706faad60888e374fa50542abeb6842d
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8par2.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 0cd4d2cf882e..c66c92e69391 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -1272,8 +1272,9 @@ void WW8TabBandDesc::ProcessSprmTTableBorders(int nBrcVer, const sal_uInt8* pPar
// sprmTTableBorders
if( nBrcVer == 6 )
{
- for( int i = 0; i < 6; ++i )
- aDefBrcs[i] = WW8_BRC( ((WW8_BRCVer6*)&pParams)[i] );
+ WW8_BRCVer6 *pVer6 = (WW8_BRCVer6*)pParams;
+ for (int i = 0; i < 6; ++i)
+ aDefBrcs[i] = WW8_BRC(pVer6[i]);
}
else if ( nBrcVer == 8 )
{