mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
All JCL tests pass
This commit is contained in:
parent
739f666c0a
commit
ba2a3e12e9
|
@ -82,8 +82,7 @@ public class UTF8Charset extends Charset {
|
||||||
byte b2 = source.get();
|
byte b2 = source.get();
|
||||||
byte b3 = source.get();
|
byte b3 = source.get();
|
||||||
byte b4 = source.get();
|
byte b4 = source.get();
|
||||||
int code = (((b & 0x07) << 18) | ((b2 & 0x3f) << 12) | ((b3 & 0x3F) << 6) | (b4 & 0x3F)) -
|
int code = ((b & 0x07) << 18) | ((b2 & 0x3f) << 12) | ((b3 & 0x3F) << 6) | (b4 & 0x3F);
|
||||||
UTF16Helper.SUPPLEMENTARY_PLANE;
|
|
||||||
dest.put(UTF16Helper.highSurrogate(code));
|
dest.put(UTF16Helper.highSurrogate(code));
|
||||||
dest.put(UTF16Helper.lowSurrogate(code));
|
dest.put(UTF16Helper.lowSurrogate(code));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user