scc

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

commit 7c525bef21883de9bc92376eb8b038cf4c200274
parent f2149706330f6585b2013e680e0ea15f1abdeb73
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 12 Apr 2014 09:02:29 +0200

Fix small typo in arithmetic

A case was missed, and it was generating a label
instead of a switch case.

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

diff --git a/expr.c b/expr.c @@ -124,7 +124,7 @@ pointer: goto incorrect; /* FIX: result of comparisions is integer type */ break; - case OADD: OSUB: + case OADD: case OSUB: tp3 = tp1->type; /* TODO: I think tp3 is not needed */ if (!tp1->defined) goto nocomplete;