aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-12-27 12:12:14 +0000
committergingerBill <bill@gingerbill.org>2018-12-27 12:12:14 +0000
commit7c982b6e109d9e9b4b99c728eea0a3aa5b0849d7 (patch)
tree22b90486b58ad57dae0f22d4f1313dc27603e4a3 /src/check_type.cpp
parentcc14180e9d37a397f9a3d7b028397f222ffa565b (diff)
min & max for types
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 63835dd76..eb1496bdc 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -833,6 +833,8 @@ void check_enum_type(CheckerContext *ctx, Type *enum_type, Type *named_type, Ast
enum_type->Enum.fields = fields;
enum_type->Enum.names = make_names_field_for_struct(ctx, ctx->scope);
+ enum_type->Enum.min_value = min_value;
+ enum_type->Enum.max_value = max_value;
}