diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-08-19 07:56:55 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-08-19 07:56:55 +0000 |
commit | 114f8b8fde6caaca093a499c077b556bf6426809 (patch) | |
tree | 723a09e5a2ba7d422555267d169c29b364dc43f6 /poi-scratchpad | |
parent | b8cd36030001addba4e9f9687308349d5356c789 (diff) | |
download | poi-114f8b8fde6caaca093a499c077b556bf6426809.tar.gz poi-114f8b8fde6caaca093a499c077b556bf6426809.zip |
test issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903555 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-scratchpad')
-rw-r--r-- | poi-scratchpad/src/main/java/org/apache/poi/hdgf/chunks/ChunkHeader.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hdgf/chunks/ChunkHeader.java b/poi-scratchpad/src/main/java/org/apache/poi/hdgf/chunks/ChunkHeader.java index 8020d31654..8f31139f53 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hdgf/chunks/ChunkHeader.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hdgf/chunks/ChunkHeader.java @@ -47,10 +47,10 @@ public abstract class ChunkHeader { } else { ch = new ChunkHeaderV6(); } - ch.setType(Math.toIntExact(LittleEndian.getUInt(data, offset))); - ch.setId(Math.toIntExact(LittleEndian.getUInt(data, offset + 4))); - ch.setUnknown1(Math.toIntExact(LittleEndian.getUInt(data, offset + 8))); - ch.setLength(Math.toIntExact(LittleEndian.getUInt(data, offset + 12))); + ch.setType((int) LittleEndian.getUInt(data, offset)); + ch.setId((int) LittleEndian.getUInt(data, offset + 4)); + ch.setUnknown1((int) LittleEndian.getUInt(data, offset + 8)); + ch.setLength((int) LittleEndian.getUInt(data, offset + 12)); ch.setUnknown2(LittleEndian.getShort(data, offset + 16)); ch.setUnknown3(LittleEndian.getUByte(data, offset + 18)); |