mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 00:04:10 -08:00
Fix corruption issue
This commit is contained in:
parent
07728cb10a
commit
73148353eb
|
@ -231,7 +231,7 @@ public final class LaxMalloc {
|
||||||
allocateMemoryFromChunk(addrIterator, chunkSize, sizeBytes);
|
allocateMemoryFromChunk(addrIterator, chunkSize, sizeBytes);
|
||||||
|
|
||||||
// +4 bytes to skip size int
|
// +4 bytes to skip size int
|
||||||
Address ret = chunkPtr.add(4);
|
Address ret = addrIterator.add(4);
|
||||||
|
|
||||||
// clear if requested
|
// clear if requested
|
||||||
if (cleared) {
|
if (cleared) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user