[hackers] [scc] [cc2] Fix negation unary operator symbol || Quentin Rameau

From: <git_AT_suckless.org>
Date: Thu, 19 May 2016 20:21:18 +0200 (CEST)

commit f12dbc2e79e4a44ddde69e4b950532e3df33b812
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu May 19 12:38:06 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Thu May 19 20:19:54 2016 +0200

    [cc2] Fix negation unary operator symbol
    
    ONEG used the same symbol as OSUB

diff --git a/cc2/parser.c b/cc2/parser.c
index 18d301f..6969d59 100644
--- a/cc2/parser.c
+++ b/cc2/parser.c
_AT_@ -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},
         ['_AT_'] = { NULL, unary, .u.op = OPTR},
         ['g'] = { NULL, unary, .u.op = OCAST},
Received on Thu May 19 2016 - 20:21:18 CEST

This archive was generated by hypermail 2.3.0 : Thu May 19 2016 - 20:24:14 CEST