diff options
| author | gingerBill <ginger.bill.22@gmail.com> | 2016-07-21 00:26:14 +0100 |
|---|---|---|
| committer | gingerBill <ginger.bill.22@gmail.com> | 2016-07-21 00:26:14 +0100 |
| commit | cbd82e3c02cbeff8fe3ba5198d6ca730f8c1eace (patch) | |
| tree | 00728d59925609e8fd081f5276e8b26117ec00e3 /src/checker/entity.cpp | |
| parent | aa6a2caecb759522914ba82cc506e60270ad1ab0 (diff) | |
Support import files as modules (i.e. import only once)
Diffstat (limited to 'src/checker/entity.cpp')
| -rw-r--r-- | src/checker/entity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checker/entity.cpp b/src/checker/entity.cpp index d90d08cfd..aed4751ef 100644 --- a/src/checker/entity.cpp +++ b/src/checker/entity.cpp @@ -26,7 +26,7 @@ struct Entity { isize order; union { - struct { Value value; } constant; + struct { ExactValue value; } constant; struct { b8 visited; b8 is_field; @@ -59,7 +59,7 @@ Entity *make_entity_variable(gbAllocator a, Scope *parent, Token token, Type *ty return entity; } -Entity *make_entity_constant(gbAllocator a, Scope *parent, Token token, Type *type, Value value) { +Entity *make_entity_constant(gbAllocator a, Scope *parent, Token token, Type *type, ExactValue value) { Entity *entity = alloc_entity(a, Entity_Constant, parent, token, type); entity->constant.value = value; return entity; |