shithub: scc

Download patch

ref: 7ba2b6ce61992330842760339cf7e11d412aa142
parent: cefd4d922b235966f6777c98de15c020876534ba
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Apr 22 11:11:36 EDT 2014

Fix typeconv()

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

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