From 2deb2f8eebc42dd52ef8b78811c59e1b07f54f21 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sat, 17 Jun 2017 12:01:53 +0100 Subject: Declaration grouping uses () rather than {}; Fix some problem with compilation on *nix --- src/check_stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_stmt.cpp') diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index fbf301878..318239b25 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1593,7 +1593,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) { found = current_scope_lookup_entity(c->context.scope, str); } if (found == NULL) { - entity = make_entity_variable(c->allocator, c->context.scope, token, NULL, (gd->flags&VarDeclFlag_immutable) != 0); + entity = make_entity_variable(c->allocator, c->context.scope, token, NULL, gd->token.kind == Token_let); entity->identifier = name; AstNode *fl = c->context.curr_foreign_library; -- cgit v1.2.3