Skip to content

Commit 2b4ce03

Browse files
committed
Fix bug in realloc
This prevented realloc from copying the old data into the newly allocated block under certain conditions.
1 parent de4ac50 commit 2b4ce03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/00/memory.asm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ _: ld hl, (prev_block_ptr)
636636
ld b, d \ ld c, e
637637
call malloc
638638
pop bc
639+
push ix \ pop de
639640
ldir
640641
push ix \ pop de
641642
pop ix

0 commit comments

Comments
 (0)