[hackers] [scc] [cc1] Fix correct variable in folduint() DBG statement || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 6 Mar 2017 14:24:40 +0100 (CET)

commit 5a4a8a31d7fd8b2c2a5d19f13a5aa20fb3e4cca1
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Mar 6 14:22:25 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Mar 6 14:22:25 2017 +0100

    [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.

diff --git a/cc1/fold.c b/cc1/fold.c
index b2f2d67..ba7635d 100644
--- a/cc1/fold.c
+++ b/cc1/fold.c
_AT_@ -231,7 +231,7 @@ folduint(int op, Symbol *res, TUINT l, TUINT r)
         }
         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:
Received on Mon Mar 06 2017 - 14:24:40 CET

This archive was generated by hypermail 2.3.0 : Mon Mar 06 2017 - 14:36:48 CET