Skip to content

Commit

Permalink
annotations: extend source position information for properties
Browse files Browse the repository at this point in the history
merge_nodes, defined in livetree.c, uses srcpos_extend only for nodes.
  • Loading branch information
bmx666 committed Jan 26, 2024
1 parent 3fbfdd0 commit 0cc7749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions livetree.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ struct node *merge_nodes(struct node *old_node, struct node *new_node)

old_prop->val = new_prop->val;
old_prop->deleted = 0;
free(old_prop->srcpos);
old_prop->srcpos = new_prop->srcpos;
old_prop->srcpos = srcpos_extend(
old_prop->srcpos, new_prop->srcpos);
free(new_prop);
new_prop = NULL;
break;
Expand Down

0 comments on commit 0cc7749

Please sign in to comment.