scc

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

commit f12dbc2e79e4a44ddde69e4b950532e3df33b812
parent 508ac8d838c64275adceeaad9b24fad8d711e3e3
Author: Quentin Rameau <quinq@fifth.space>
Date:   Thu, 19 May 2016 12:38:06 +0200

[cc2] Fix negation unary operator symbol

ONEG used the same symbol as OSUB

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

diff --git a/cc2/parser.c b/cc2/parser.c @@ -83,7 +83,7 @@ static struct decoc { ['\t'] = { stmt, NULL, 0}, ['~'] = { NULL, unary, .u.op = OCPL}, - ['-'] = { NULL, unary, .u.op = ONEG}, + ['_'] = { NULL, unary, .u.op = ONEG}, ['\''] = { NULL, unary, .u.op = OADDR}, ['@'] = { NULL, unary, .u.op = OPTR}, ['g'] = { NULL, unary, .u.op = OCAST},