diff options
author | Alain Béarez <abearez@apache.org> | 2019-05-21 00:14:12 +0000 |
---|---|---|
committer | Alain Béarez <abearez@apache.org> | 2019-05-21 00:14:12 +0000 |
commit | 928e6937f40754450a42ad3c5a106908bd083105 (patch) | |
tree | ff1ffc784ab8628b619a68a675f40f2a9bf1558c /src/java/org/apache/poi/util | |
parent | 906c52d81d625ae2fce9905c38a4ad29fb77caf1 (diff) | |
download | poi-928e6937f40754450a42ad3c5a106908bd083105.tar.gz poi-928e6937f40754450a42ad3c5a106908bd083105.zip |
fix result of multiplication cast to wider type
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859595 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/util')
-rw-r--r-- | src/java/org/apache/poi/util/StringUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/util/StringUtil.java b/src/java/org/apache/poi/util/StringUtil.java index d8b4837931..fb69fbd538 100644 --- a/src/java/org/apache/poi/util/StringUtil.java +++ b/src/java/org/apache/poi/util/StringUtil.java @@ -263,7 +263,7 @@ public class StringUtil { } public static String readUnicodeLE(LittleEndianInput in, int nChars) { - byte[] bytes = IOUtils.safelyAllocate(nChars * 2, MAX_RECORD_LENGTH); + byte[] bytes = IOUtils.safelyAllocate(nChars * 2L, MAX_RECORD_LENGTH); in.readFully(bytes); return new String(bytes, UTF16LE); } |