Skip to content

Commit

Permalink
wasm gc: fix wrong argument order in System.arraycopy implementation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lax1dude authored Nov 30, 2024
1 parent f11a547 commit e4c3268
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -876,8 +876,8 @@ private WasmFunction createArrayCopyFunction(ValueType type) {
var targetArrayData = new WasmStructGet(arrayStruct, targetArray, ARRAY_DATA_FIELD_OFFSET);

function.getBody().add(new WasmArrayCopy(
arrayDataType, targetArrayData, new WasmGetLocal(sourceIndexLocal),
arrayDataType, sourceArrayData, new WasmGetLocal(targetIndexLocal),
arrayDataType, targetArrayData, new WasmGetLocal(targetIndexLocal),
arrayDataType, sourceArrayData, new WasmGetLocal(sourceIndexLocal),
new WasmGetLocal(countLocal)));
return function;
}
Expand Down

0 comments on commit e4c3268

Please sign in to comment.