From 7c982b6e109d9e9b4b99c728eea0a3aa5b0849d7 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 27 Dec 2018 12:12:14 +0000 Subject: min & max for types --- src/check_type.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/check_type.cpp') 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; } -- cgit v1.2.3