scc

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

commit 7ba2b6ce61992330842760339cf7e11d412aa142
parent cefd4d922b235966f6777c98de15c020876534ba
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 22 Apr 2014 15:11:36 +0200

Fix typeconv()

A unsigned variable cannot be negative, so the second part of
the conditional was always false.

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

diff --git a/expr.c b/expr.c @@ -39,7 +39,7 @@ typeconv(Node **p1, Node **p2) { Type *tp1, *tp2; Node *np1, *np2; - uint8_t n; + int8_t n; np1 = promote(*p1); np2 = promote(*p2);