From cbd82e3c02cbeff8fe3ba5198d6ca730f8c1eace Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 21 Jul 2016 00:26:14 +0100 Subject: Support import files as modules (i.e. import only once) --- src/checker/entity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/checker/entity.cpp') 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; -- cgit v1.2.3