]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Do not create coverage calls on array accessors.
authorWolfgang Bumiller <wry.git@bumiller.com>
Tue, 7 Jan 2014 14:01:52 +0000 (15:01 +0100)
committerWolfgang Bumiller <wry.git@bumiller.com>
Tue, 7 Jan 2014 14:01:52 +0000 (15:01 +0100)
parser.c

index 956d88dd5e76d214b9a7b368314ec7137c8a223d..5a8223468302184405c9a678920026802c9d982d 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -4407,6 +4407,7 @@ static bool parser_create_array_accessor(parser_t *parser, ast_value *array, con
         parseerror(parser, "failed to create accessor function value");
         return false;
     }
+    fval->expression.flags &= ~(AST_FLAG_COVERAGE_MASK);
 
     func = ast_function_new(ast_ctx(array), funcname, fval);
     if (!func) {