scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit f5dfae1b97d7ec07b2db1f30576d6b9fe93abdb7
parent ca6f77982f0907933243c0fc585c34acf3d59c62
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 22 Dec 2016 16:02:33 +0100

[cc1] Fix unlinkhash()

This function must unlink using the hash pointer and no the next
pointer, because they are very diffrent things.

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

diff --git a/cc1/symbol.c b/cc1/symbol.c @@ -67,7 +67,7 @@ unlinkhash(Symbol *sym) if ((sym->flags & SDECLARED) == 0) return; h = hash(sym->name, sym->ns); - *h = sym->next; + *h = sym->hash; } void