diff options
| author | Ginger Bill <github@gingerbill.org> | 2016-08-18 15:58:36 +0100 |
|---|---|---|
| committer | Ginger Bill <github@gingerbill.org> | 2016-08-18 15:58:36 +0100 |
| commit | f931b089d5ce0374e36c3241176e4ef24953522e (patch) | |
| tree | 034bcf331e049919b6ecd42ab48e19fc77993a16 /src/checker/checker.cpp | |
| parent | 6b2cd1b33fafb18e052ebc5df19481232202607b (diff) | |
print_(f32|f64)
Diffstat (limited to 'src/checker/checker.cpp')
| -rw-r--r-- | src/checker/checker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/checker/checker.cpp b/src/checker/checker.cpp index b37effb8f..100b480bd 100644 --- a/src/checker/checker.cpp +++ b/src/checker/checker.cpp @@ -210,7 +210,7 @@ void destroy_scope(Scope *scope) { gb_for_array(i, scope->elements.entries) { Entity *e =scope->elements.entries[i].value; if (e->kind == Entity_Variable) { - if (!e->variable.used) { + if (!e->Variable.used) { #if 0 warning(e->token, "Unused variable `%.*s`", LIT(e->token.string)); #endif @@ -314,7 +314,7 @@ void add_global_constant(gbAllocator a, String name, Type *type, ExactValue valu Token token = {Token_Identifier}; token.string = name; Entity *entity = alloc_entity(a, Entity_Constant, NULL, token, type); - entity->constant.value = value; + entity->Constant.value = value; add_global_entity(entity); } @@ -346,7 +346,7 @@ void init_universal_scope(void) { Token token = {Token_Identifier}; token.string = builtin_procs[i].name; Entity *entity = alloc_entity(a, Entity_Builtin, NULL, token, t_invalid); - entity->builtin.id = id; + entity->Builtin.id = id; add_global_entity(entity); } } |