Fix a latent bug with parsing macro args

This seems to only have worked by coincidence; `$$` was an
undefined value that happened to equal `$1` already.
This commit is contained in:
Rangi42
2024-03-06 15:14:17 -05:00
parent 82824a4bf2
commit f419f206e5

View File

@@ -525,7 +525,8 @@ macroargs:
fatalerror("Failed to allocate memory for macro arguments: %s\n", strerror(errno));
}
| macroargs T_STRING {
$$->append($2);
$1->append($2);
$$ = $1;
}
;