diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-20 10:42:23 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-05-20 10:58:57 +0200 |
commit | 4a8caa37fe83c389f4fd43219e8ea0f21f03c6fe (patch) | |
tree | a3582c560ee5c936e8aa5b854b2a0e78b3d4854f /oox | |
parent | 5840c2787c61bcbb5401d2aa0fc9e163e303f76c (diff) |
warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits
in VisualStudio
reported by Luke Benes
Change-Id: I908039750a3e89e4d1b77631f7d309191735c765
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ole/vbainputstream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/ole/vbainputstream.cxx b/oox/source/ole/vbainputstream.cxx index 65eb91c12e37..e3c545231e73 100644 --- a/oox/source/ole/vbainputstream.cxx +++ b/oox/source/ole/vbainputstream.cxx @@ -157,7 +157,7 @@ bool VbaInputStream::updateChunk() sal_uInt16 nCopyToken = mpInStrm->readuInt16(); nChunkPos = nChunkPos + 2; // update bit count used for offset/length in the token - while( static_cast< size_t >( 1 << nBitCount ) < maChunk.size() ) ++nBitCount; + while( ((static_cast<size_t>(1)) << nBitCount ) < maChunk.size() ) ++nBitCount; // extract length from lower (16-nBitCount) bits, plus 3 sal_uInt16 nLength = extractValue< sal_uInt16 >( nCopyToken, 0, 16 - nBitCount ) + 3; // extract offset from high nBitCount bits, plus 1 |