[hackers] [scc] [cc2] fix alloc() || Quentin Rameau

From: <git_AT_suckless.org>
Date: Wed, 1 Jun 2016 22:05:54 +0200 (CEST)

commit 7ceb2bb314fb31bc01ce1781e00be4d29d38b7f3
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Wed Jun 1 22:04:39 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Wed Jun 1 22:04:39 2016 +0200

    [cc2] fix alloc()
    
    The order of "type" and '=' was inverted

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index 91e78f1..2f213c5 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
_AT_@ -296,7 +296,7 @@ alloc(Symbol *sym)
 {
         Type *tp = &sym->type;
 
- printf("\t%s %s=\talloc%lu\t%lu\n",
+ printf("\t%s =%s\talloc%lu\t%lu\n",
                symname(sym), size2asm(tp), tp->size, tp->align);
 }
 
Received on Wed Jun 01 2016 - 22:05:54 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 01 2016 - 22:12:16 CEST