[hackers] [scc] [cc1] Use u variable in emitconst() || Roberto E. Vargas Caballero

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

commit c157d03141d8f99ff753af8b72b6dff6cf2ac4bc
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Mar 6 13:40:31 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Mar 6 13:40:31 2017 +0100

    [cc1] Use u variable in emitconst()
    
    This variable was used to avoid type punning in emitconst(),
    but due to a error at the end the type punning was done.

diff --git a/cc1/code.c b/cc1/code.c
index 01bf6ff..1fe0e4c 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -224,7 +224,7 @@ emitconst(Node *np)
                 fprintf(outfp,
                         "#%c%llX",
                         np->type->letter,
- (long long) sym->u.i & ones(tp->size));
+ (long long) u & ones(tp->size));
                 break;
         default:
                 abort();
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:36 CET