shithub: scc

Download patch

ref: ab99666d785ab77175604d87d9abd204645b040b
parent: 0645a868520feb0fac8932b08b6c4e1258b58c0c
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Dec 16 13:52:34 EST 2017

[as] Fix symexp()

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

--- a/as/ins.c
+++ b/as/ins.c
@@ -89,7 +89,7 @@
 		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);
 	}