[hackers] [scc] Fix emitbin() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 14 Aug 2015 07:34:35 +0200 (CEST)

commit e6e455cf62362367eed000de2771ca275953ec93
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Aug 14 07:32:47 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Aug 14 07:32:47 2015 +0200

    Fix emitbin()
    
    Emitbin() was printing directly the letter of the type,
    but it is incorrect since we have emitletter() now,
    which take care of struct/union/vector and print
    the id to.

diff --git a/cc1/code.c b/cc1/code.c
index 2d8cf6e..09f499a 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -303,8 +303,8 @@ emitbin(unsigned op, void *arg)
 
         emitnode(np->left);
         emitnode(np->right);
- if ((s = optxt[op]) != NULL)
- printf("\t%s%c", s, np->type->letter);
+ printf("\t%s", optxt[op]);
+ emitletter(np->type);
 }
 
 static void
Received on Fri Aug 14 2015 - 07:34:35 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 14 2015 - 07:36:16 CEST