From 851c09fecbd085a19c568cf0d638eb269cbf97c5 Mon Sep 17 00:00:00 2001 From: lax1dude Date: Sat, 9 Nov 2024 17:31:38 -0800 Subject: [PATCH] Fix growHeap --- core/src/main/java/org/teavm/runtime/LaxMalloc.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/teavm/runtime/LaxMalloc.java b/core/src/main/java/org/teavm/runtime/LaxMalloc.java index 88836caa1..ebf329e03 100644 --- a/core/src/main/java/org/teavm/runtime/LaxMalloc.java +++ b/core/src/main/java/org/teavm/runtime/LaxMalloc.java @@ -526,13 +526,13 @@ public final class LaxMalloc { addrHeap(ADDR_HEAP_INNER_LIMIT).putAddress(newHeapInnerLimit); addrHeap(ADDR_HEAP_OUTER_LIMIT).putAddress(newHeapOuterLimit); notifyHeapResized(); - return newHeapInnerLimit; + return heapInnerLimit; } else { return Address.fromInt(0); } } else { addrHeap(ADDR_HEAP_INNER_LIMIT).putAddress(newHeapInnerLimit); - return newHeapInnerLimit; + return heapInnerLimit; } }