[hackers] [scc] Update nested variable in cast() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Thu, 27 Aug 2015 16:16:37 +0200 (CEST)

commit 4fcf1afb4b17da514f823d16890dd4ece09ecf1e
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Aug 27 16:08:34 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Aug 27 16:08:34 2015 +0200

    Update nested variable in cast()

diff --git a/cc1/expr.c b/cc1/expr.c
index 233e003..b4cc289 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -1013,7 +1013,9 @@ cast(void)
         default:
                 if (nested == NR_SUBEXPR)
                         error("too expressions nested by parentheses");
+ ++nested;
                 rp = expr();
+ --nested;
                 expect(')');
                 rp = postfix(rp);
                 break;
Received on Thu Aug 27 2015 - 16:16:37 CEST

This archive was generated by hypermail 2.3.0 : Thu Aug 27 2015 - 16:24:20 CEST