Skip to content

Commit

Permalink
move src and dst to next buffer position (#47229)
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriel Baraldi <baraldigabriel@gmail.com>
  • Loading branch information
awfeequdng and gbaraldi authored Nov 2, 2022
1 parent de5559f commit 9e1dac0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/datatype.c
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,7 @@ static inline void memassign_safe(int hasptr, jl_value_t *parent, char *dst, con
memmove_refs((void**)dst, (void**)src, nptr);
jl_gc_multi_wb(parent, src);
src = (jl_value_t*)((char*)src + nptr * sizeof(void*));
dst = dst + nptr * sizeof(void*);
nb -= nptr * sizeof(void*);
}
else {
Expand Down

0 comments on commit 9e1dac0

Please sign in to comment.