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

From: <git_AT_suckless.org>
Date: Fri, 23 Dec 2016 08:59:25 +0100 (CET)

commit 82c920e97007a784ca620fdaead55d4ce8bc0ecf
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Dec 23 08:57:01 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Dec 23 08:57:01 2016 +0100

    [cc1] Fix popctx()
    
    Last commit changed the order of the operations (first decrement
    curctx and then kill symbols), so it was necessary to change
    the condition of the loop over head elements.

diff --git a/cc1/symbol.c b/cc1/symbol.c
index bd171b3..633691d 100644
--- a/cc1/symbol.c
+++ b/cc1/symbol.c
_AT_@ -106,7 +106,7 @@ popctx(void)
 {
         Symbol *next, *sym;
 
- for (sym = head; sym && sym->ctx > curctx; sym = next) {
+ for (sym = head; sym && sym->ctx == curctx; sym = next) {
                 next = sym->next;
                 killsym(sym);
         }
Received on Fri Dec 23 2016 - 08:59:25 CET

This archive was generated by hypermail 2.3.0 : Fri Dec 23 2016 - 09:00:24 CET