mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 00:04:10 -08:00
wasm gc: fix wrong argument order in System.arraycopy implementation (#975)
This commit is contained in:
parent
f11a5474d0
commit
e4c32681b9
|
@ -876,8 +876,8 @@ public class WasmGCClassGenerator implements WasmGCClassInfoProvider, WasmGCInit
|
||||||
var targetArrayData = new WasmStructGet(arrayStruct, targetArray, ARRAY_DATA_FIELD_OFFSET);
|
var targetArrayData = new WasmStructGet(arrayStruct, targetArray, ARRAY_DATA_FIELD_OFFSET);
|
||||||
|
|
||||||
function.getBody().add(new WasmArrayCopy(
|
function.getBody().add(new WasmArrayCopy(
|
||||||
arrayDataType, targetArrayData, new WasmGetLocal(sourceIndexLocal),
|
arrayDataType, targetArrayData, new WasmGetLocal(targetIndexLocal),
|
||||||
arrayDataType, sourceArrayData, new WasmGetLocal(targetIndexLocal),
|
arrayDataType, sourceArrayData, new WasmGetLocal(sourceIndexLocal),
|
||||||
new WasmGetLocal(countLocal)));
|
new WasmGetLocal(countLocal)));
|
||||||
return function;
|
return function;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user