修复数组拼接的 bug

dev
ZhouXY108 2024-09-21 10:10:18 +08:00
parent 424194d67b
commit 62fd1b900f
1 changed files with 5 additions and 5 deletions

View File

@ -180,7 +180,7 @@ public class ArrayTools {
int i = 0;
for (float[] arr : arrays) {
System.arraycopy(arr, 0, result, i, arr.length);
i = arr.length;
i += arr.length;
}
return result;
}
@ -200,7 +200,7 @@ public class ArrayTools {
int i = 0;
for (double[] arr : arrays) {
System.arraycopy(arr, 0, result, i, arr.length);
i = arr.length;
i += arr.length;
}
return result;
}
@ -220,7 +220,7 @@ public class ArrayTools {
int i = 0;
for (byte[] arr : arrays) {
System.arraycopy(arr, 0, result, i, arr.length);
i = arr.length;
i += arr.length;
}
return result;
}
@ -240,7 +240,7 @@ public class ArrayTools {
int i = 0;
for (long[] arr : arrays) {
System.arraycopy(arr, 0, result, i, arr.length);
i = arr.length;
i += arr.length;
}
return result;
}
@ -260,7 +260,7 @@ public class ArrayTools {
int i = 0;
for (int[] arr : arrays) {
System.arraycopy(arr, 0, result, i, arr.length);
i = arr.length;
i += arr.length;
}
return result;
}