]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
don't rewind local variables too far
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 12 Aug 2012 16:58:46 +0000 (18:58 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 12 Aug 2012 16:58:46 +0000 (18:58 +0200)
parser.c

index 47274be0707f117c7eac8ddf1790094ab86fa8c7..14fbb2ab9a879df256c00168a662af445f465455 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -13,8 +13,6 @@ typedef struct {
     lex_file *lex;
     int      tok;
 
-    int      fieldsize;
-
     MEM_VECTOR_MAKE(varentry_t, globals);
     MEM_VECTOR_MAKE(varentry_t, fields);
     MEM_VECTOR_MAKE(ast_function*, functions);
@@ -952,10 +950,10 @@ static ast_block* parser_parse_block(parser_t *parser)
     }
 
 cleanup:
-    parser->blocklocal = oldblocklocal;
-    /* unroll the local vector */
     while (parser->locals_count > parser->blocklocal)
         parser_pop_local(parser);
+    parser->blocklocal = oldblocklocal;
+    /* unroll the local vector */
     return block;
 }