Fix .asciz <expr>... where an overzealous parsing wants to parse too much of the remaining text

In particular, the example was
	.asciz <cr><lf>/<SOH>/
where it tried to make a division betweem <lf> and the delimited
string /<SOH>/.
This commit is contained in:
Olaf Seibert
2015-05-10 17:32:44 +02:00
parent 2c091595e9
commit fcc85aa5f5
3 changed files with 27 additions and 1 deletions

View File

@@ -1077,7 +1077,7 @@ static int assemble(
cp = skipwhite(cp);
if (*cp == '<' || *cp == '^') {
/* A byte value */
value = parse_expr(cp, 0);
value = parse_unary_expr(cp, 0);
cp = value->cp;
store_value(stack, tr, 1, value);
free_tree(value);