Skip to content

Commit

Permalink
erts: Make sure to tag orig with literal ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Jan 27, 2025
1 parent a51de9c commit 5b6a008
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erts/emulator/beam/erl_term.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ erts_set_literal_tag(Eterm *term, Eterm *hp_start, Eterm hsz)
break;
case TAG_PRIMARY_HEADER:
if (header_is_thing(*hp)) {
if (*hp == HEADER_SUB_BITS) {
((ErlSubBits*)hp)->orig |= TAG_LITERAL_PTR;
}
hp += thing_arityval(*hp);
}
break;
Expand Down

0 comments on commit 5b6a008

Please sign in to comment.