ICU-5018 fix a small bug

X-SVN-Rev: 20272
This commit is contained in:
Ram Viswanadha 2006-09-08 05:04:07 +00:00
parent fdf9a9dbc2
commit 3870fe1448

View File

@ -290,7 +290,7 @@ public class CharsetUTF16 extends CharsetICU {
if((c=(char)fromUChar32)!=0 && UTF16.isTrailSurrogate(trail=source.get(sourceArrayIndex)) && target.remaining()>=4) {
/* the last buffer ended with a lead surrogate, output the surrogate pair */
++sourceIndex;
++sourceArrayIndex;
--length;
target.put((byte)(c>>>8));
target.put((byte)c);