shithub: scc

Download patch

ref: 91fed4f458eac3d6b7cc9c02042a4c670d037ede
parent: 4a958ed64d14b99abed9c49125079ca21d3a8d38
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Mar 6 09:22:25 EST 2017

[cc1] Fix correct variable in folduint() DBG statement

In the unsigned case the variable with the value of the union is
u and not i.

--- a/cc1/fold.c
+++ b/cc1/fold.c
@@ -231,7 +231,7 @@
 	}
 	res->u.u = u & ones(res->type->size);
 
-	DBG("FOLD ui l=%llu %d r=%llu = %llu", l, op, r, i);
+	DBG("FOLD ui l=%llu %d r=%llu = %llu", l, op, r, u);
 	return 1;
 
 sign: