aboutsummaryrefslogtreecommitdiff
path: root/src/checker/stmt.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-03 12:41:03 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-03 12:41:03 +0100
commit11205f968ad2bf4893fa75df3fc3331f960039d1 (patch)
tree9f6504a674e1fc59346b98df961c20c773db2227 /src/checker/stmt.cpp
parente1a6775661d1ef57b84effa9b4c567c030b87556 (diff)
Typesafe variadic procedures
Diffstat (limited to 'src/checker/stmt.cpp')
-rw-r--r--src/checker/stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker/stmt.cpp b/src/checker/stmt.cpp
index 3508321c7..803e777de 100644
--- a/src/checker/stmt.cpp
+++ b/src/checker/stmt.cpp
@@ -421,7 +421,7 @@ void check_proc_body(Checker *c, Token token, DeclInfo *decl, Type *type, AstNod
void check_proc_decl(Checker *c, Entity *e, DeclInfo *d, b32 check_body_later) {
GB_ASSERT(e->type == NULL);
- Type *proc_type = make_type_proc(c->allocator, e->scope, NULL, 0, NULL, 0);
+ Type *proc_type = make_type_proc(c->allocator, e->scope, NULL, 0, NULL, 0, false);
e->type = proc_type;
ast_node(pd, ProcDecl, d->proc_decl);
check_open_scope(c, pd->type);