]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.h
Use std::vector for ast switch cases
[xonotic/gmqcc.git] / ast.h
diff --git a/ast.h b/ast.h
index e5b331b73712176667c1418afe03c2c835173874..d101a21b05b0f5172e11218f330af4a935e531ac 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -522,7 +522,7 @@ struct ast_switch
 {
     ast_expression expression;
     ast_expression *operand;
-    ast_switch_case *cases;
+    std::vector<ast_switch_case> cases;
 };
 
 ast_switch* ast_switch_new(lex_ctx_t ctx, ast_expression *op);