scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit e6e455cf62362367eed000de2771ca275953ec93
parent 279d40a3b400b6b56def291ae5f558d5527fe7bf
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 14 Aug 2015 07:32:47 +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.

Diffstat:
cc1/code.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cc1/code.c b/cc1/code.c @@ -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