From 5e3514e5dda2e16e52108cb35e3da004f84d183e Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Fri, 11 May 2018 20:02:52 +0300 Subject: [PATCH] Wasm backend: fix low-level memory copying function --- core/src/main/java/org/teavm/backend/wasm/WasmRuntime.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/teavm/backend/wasm/WasmRuntime.java b/core/src/main/java/org/teavm/backend/wasm/WasmRuntime.java index 1027090c4..35838435e 100644 --- a/core/src/main/java/org/teavm/backend/wasm/WasmRuntime.java +++ b/core/src/main/java/org/teavm/backend/wasm/WasmRuntime.java @@ -233,8 +233,8 @@ public final class WasmRuntime { source = source.add(1); } } else { - source.add(count); - target.add(count); + source = source.add(count); + target = target.add(count); while (count-- > 0) { target = target.add(-1); source = source.add(-1);