[hackers] [scc] [cc2-qbe] Fix returned name in symname() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 15 Apr 2016 10:06:17 +0200 (CEST)

commit e380352af6d775f0f9aefe3623658ad72ce80c1a
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Apr 15 09:40:10 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Apr 15 09:51:01 2016 +0200

    [cc2-qbe] Fix returned name in symname()
    
    We were not returnning the generated name which includes
    the sigil.

diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index 037b1ab..56d2def 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
_AT_@ -42,7 +42,7 @@ symname(Symbol *sym)
                 case GLOB:
                 case PRIVAT:
                         sprintf(name, "%c%s", c, sym->name);
- return sym->name;
+ return name;
                 }
         }
 
Received on Fri Apr 15 2016 - 10:06:17 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 15 2016 - 10:12:24 CEST