mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
adjust UnicodeSupport.mergePairs logic
when we reach the end of one array, copy the rest of the other and return
This commit is contained in:
parent
cff91e03ff
commit
5c446f1b62
|
@ -144,12 +144,12 @@ public class UnicodeSupport {
|
|||
int j = 0;
|
||||
int t = 0;
|
||||
while (true) {
|
||||
if (i == a.length) {
|
||||
if (j == b.length) {
|
||||
while (i < a.length) {
|
||||
result[t++] = a[i++];
|
||||
}
|
||||
break;
|
||||
} else if (j == b.length) {
|
||||
} else if (i == a.length) {
|
||||
while (j < b.length) {
|
||||
result[t++] = b[j++];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user