Skip to content

Commit

Permalink
Fix bug in realloc
Browse files Browse the repository at this point in the history
This prevented realloc from copying the old data into the newly
allocated block under certain conditions.
  • Loading branch information
ddevault committed Jul 25, 2015
1 parent de4ac50 commit 2b4ce03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/00/memory.asm
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ _: ld hl, (prev_block_ptr)
ld b, d \ ld c, e
call malloc
pop bc
push ix \ pop de
ldir
push ix \ pop de
pop ix
Expand Down

0 comments on commit 2b4ce03

Please sign in to comment.