commit 4fcf1afb4b17da514f823d16890dd4ece09ecf1e
parent 248d4be51443e4c1a6137f285bdde1a027120bb6
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 27 Aug 2015 16:08:34 +0200
Update nested variable in cast()
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/cc1/expr.c b/cc1/expr.c
@@ -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;