aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-17 22:22:30 +0100
committergingerBill <bill@gingerbill.org>2018-06-17 22:22:30 +0100
commit877400dd12c47eaaef118fe9658eeb7d829bcf96 (patch)
treee31a189750dd8b0f56dc0cecd7a71da1bbc53f84 /src/check_type.cpp
parenta4e3201113311b338c563d169cac59aaf9cf6335 (diff)
Scope to use flags rathers than booleans
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index bbb67667e..931117f79 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -608,7 +608,7 @@ void check_enum_type(CheckerContext *ctx, Type *enum_type, Type *named_type, Ast
enum_type->Enum.is_export = et->is_export;
if (et->is_export) {
Scope *parent = ctx->scope->parent;
- if (parent->is_file) {
+ if (parent->flags&ScopeFlag_File) {
// NOTE(bill): Use package scope
parent = parent->parent;
}