PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352843 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
432f37476d
commit
6880121c7e
@ -114,7 +114,7 @@ public class StringUtil {
|
|||||||
|
|
||||||
char[] chars = new char[ len ];
|
char[] chars = new char[ len ];
|
||||||
for ( int i = 0; i < chars.length; i++ ) {
|
for ( int i = 0; i < chars.length; i++ ) {
|
||||||
chars[i] = (char)( string[ offset + ( 2*i ) ] +
|
chars[i] = (char)( string[ offset + ( 2*i ) ] & 0xFF |
|
||||||
( string[ offset + ( 2*i+1 ) ] << 8 ) );
|
( string[ offset + ( 2*i+1 ) ] << 8 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user