Skip to content

Commit

Permalink
Fix backwards array copy function
Browse files Browse the repository at this point in the history
  • Loading branch information
lax1dude committed Nov 28, 2024
1 parent ff35ad3 commit 75ab3be
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 75ab3be

Please sign in to comment.