aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/poifs/property/NPropertyTable.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi/poifs/property/NPropertyTable.java')
-rw-r--r--src/java/org/apache/poi/poifs/property/NPropertyTable.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/poifs/property/NPropertyTable.java b/src/java/org/apache/poi/poifs/property/NPropertyTable.java
index 7117bc2e0f..12b4ffe194 100644
--- a/src/java/org/apache/poi/poifs/property/NPropertyTable.java
+++ b/src/java/org/apache/poi/poifs/property/NPropertyTable.java
@@ -113,7 +113,7 @@ public final class NPropertyTable extends PropertyTableBase {
*/
public int countBlocks()
{
- long rawSize = _properties.size() * POIFSConstants.PROPERTY_SIZE;
+ long rawSize = _properties.size() * (long)POIFSConstants.PROPERTY_SIZE;
int blkSize = _bigBigBlockSize.getBigBlockSize();
int numBlocks = (int)(rawSize / blkSize);
if ((rawSize % blkSize) != 0) {