diff options
-rw-r--r-- | oox/source/ole/vbaexport.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx index 10c0d21c06bc..b9c9676b5d38 100644 --- a/oox/source/ole/vbaexport.cxx +++ b/oox/source/ole/vbaexport.cxx @@ -271,7 +271,7 @@ void VBACompressionChunk::CopyTokenHelp(sal_uInt16& rLengthMask, sal_uInt16& rOf sal_uInt16& rBitCount, sal_uInt16& rMaximumLength) { sal_uInt16 nDifference = mnDecompressedCurrent; - sal_uInt16 nBitCount = std::ceil(std::log2(nDifference)); + sal_uInt16 nBitCount = std::ceil(std::log(nDifference)/std::log(2)); rBitCount = std::max<sal_uInt16>(nBitCount, 4); rLengthMask = 0xffff >> rBitCount; rOffsetMask = ~rLengthMask; |