]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Pop off all the locals after a function
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 10:59:52 +0000 (12:59 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 10:59:52 +0000 (12:59 +0200)
parser.c

index 9db84bbc2de1ebd15d3b96fdf9982c914e3ca005..30dd9ed0eb567daf0ce66682b3eda556bbcf5b1d 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -2448,6 +2448,8 @@ nextvar:
                 return false;
             }
             parser->function = old;
+            while (parser->locals_count)
+                parser_pop_local(parser);
 
             if (!block) {
                 ast_value_delete(typevar);