Skip to content
Permalink
Browse files

Merge pull request #237 from leecher1337/patch

memslot: Fix a bug of memslot_move()
  • Loading branch information...
wcwang committed Aug 29, 2019
2 parents 3c85766 + e1e9c97 commit 1958f91b39df2b51667c2e22b463f7e0c8bbe805
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/memslot.c
@@ -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)

0 comments on commit 1958f91

Please sign in to comment.
You can’t perform that action at this time.