diff --git a/core/src/main/java/org/teavm/runtime/LaxMalloc.java b/core/src/main/java/org/teavm/runtime/LaxMalloc.java index 483b5c512..2549ab32b 100644 --- a/core/src/main/java/org/teavm/runtime/LaxMalloc.java +++ b/core/src/main/java/org/teavm/runtime/LaxMalloc.java @@ -231,7 +231,7 @@ public final class LaxMalloc { allocateMemoryFromChunk(addrIterator, chunkSize, sizeBytes); // +4 bytes to skip size int - Address ret = chunkPtr.add(4); + Address ret = addrIterator.add(4); // clear if requested if (cleared) {