mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-04 23:05:21 +02:00
b2/subex.c (compose): search "out" variables before "in" variables
This commit is contained in:
parent
ee0a2a41fa
commit
31c1c58691
@ -104,9 +104,9 @@ static char *compose(const struct chunk *c,
|
||||
append(&res, &res_len, c->u.s);
|
||||
break;
|
||||
case ct_var:
|
||||
val = var_lookup(in, c->u.var);
|
||||
val = var_lookup(out, c->u.var);
|
||||
if (!val)
|
||||
val = var_lookup(out, c->u.var);
|
||||
val = var_lookup(in, c->u.var);
|
||||
assert(val);
|
||||
append(&res, &res_len, val);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user