scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 50e7ddaeb14834574ae4964535be5730e977d957
parent b96cec7761fa4ee35633aebc9948a9a68f33e107
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 16 Dec 2017 18:52:34 +0100

[as] Fix symexp()

There was an incorrect assigment between pointers that some stupid
compiler should forbid as c standard mandates ...

Diffstat:
Mas/ins.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/as/ins.c b/as/ins.c @@ -89,7 +89,7 @@ symexp(int which, Op *op, Node **args) exp = args[1]->sym; } else if (linesym) { sym = linesym; - exp = args[0]; + exp = args[0]->sym; } else { error("%s pseudo instruction lacks a label", cmd); }