Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #237 from leecher1337/patch
Browse files Browse the repository at this point in the history
memslot: Fix a bug of memslot_move()
  • Loading branch information
wcwang authored Aug 29, 2019
2 parents 3c85766 + e1e9c97 commit 1958f91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/memslot.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ static inline void memslot_delete(hax_memslot *dest)
static inline void memslot_move(hax_memslot *dest, hax_memslot *src)
{
ramblock_deref(dest->block);
memslot_init(dest, src);
src->entry = dest->entry;
*dest = *src;
ramblock_ref(dest->block);
}

static inline void memslot_union(hax_memslot *dest, hax_memslot *src)
Expand Down

0 comments on commit 1958f91

Please sign in to comment.