summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oox/source/ole/vbaexport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx
index 717f6eb107a6..97d7295fc9b2 100644
--- a/oox/source/ole/vbaexport.cxx
+++ b/oox/source/ole/vbaexport.cxx
@@ -438,7 +438,7 @@ void VBAEncryption::writeDataLengthEnc()
void VBAEncryption::writeDataEnc()
{
- for(sal_Int8 i = 0; i < mnLength; i++)
+ for(sal_Int16 i = 0; i < mnLength; i++)
{
sal_uInt8 nByteEnc = mpData[i] ^ (mnEncryptedByte2 + mnUnencryptedByte1);
exportHexString(mrEncryptedData, nByteEnc);