scc

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

commit 52e1fdda535e7bee18f092cc4c22d4f89eb67027
parent 60b65029a6c02b37d4c3550266fadd11869ae0cd
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 18 Dec 2017 21:56:36 +0100

[as] Fix cleansec()

We changed the meaning of the flags, so we had to change also
this condition that was inverted.

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

diff --git a/as/symbol.c b/as/symbol.c @@ -236,7 +236,7 @@ cleansecs(void) for (sec = seclist; sec; sec = sec->next) { sec->curpc = sec->pc = sec->base; - if (pass == 1 || !(sec->flags & SFILE)) + if (pass == 1 || sec->flags & SFILE) continue; siz = sec->max - sec->base;