]> source.dussan.org Git - poi.git/commitdiff
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12410
authorAndrew C. Oliver <acoliver@apache.org>
Thu, 12 Sep 2002 01:49:40 +0000 (01:49 +0000)
committerAndrew C. Oliver <acoliver@apache.org>
Thu, 12 Sep 2002 01:49:40 +0000 (01:49 +0000)
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

src/java/org/apache/poi/util/StringUtil.java

index 059e36acd8bf076c745d8a8853ae0b2f53ebe736..a8c868b4c90dfdddbca91cfd0d4fecaf8e8aad1f 100644 (file)
@@ -114,7 +114,7 @@ public class StringUtil {
         
         char[] chars = new char[ len ];
         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 ) );
         }