scc

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

commit 56e56694ff267c2294b3ab20e9a60c05ed9cdf47
parent 169c191fd3a86d22ae6847311dcd82a6483a4aa9
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 13 Mar 2015 20:51:13 +0000

Correct expression() in cc2

The maximum value of the input value is 7f and not 1f.

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

diff --git a/cc2/parser.c b/cc2/parser.c @@ -411,7 +411,7 @@ expression(char *token) error(ESYNTAX); do { - if ((c = token[0]) > 0x1f || (fun = optbl[c]) == NULL) + if ((c = token[0]) > 0x7f || (fun = optbl[c]) == NULL) error(ESYNTAX); (*fun)(token); } while (token = strtok(NULL, "\t"));