From e06885d64e3569719e9479c7069da7ad426a70d3 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 23 Sep 2016 15:18:02 -0400 Subject: enums support member functions --- src/eval.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/eval.cpp') diff --git a/src/eval.cpp b/src/eval.cpp index 1ccf0225f4..c19e2ea234 100644 --- a/src/eval.cpp +++ b/src/eval.cpp @@ -683,7 +683,7 @@ void eval_const_expr_implicit_cast(CastOp cast_op, { uint64_t value = other_val->data.x_bignum.data.x_uint; assert(new_type->id == TypeTableEntryIdEnum); - assert(value < new_type->data.enumeration.field_count); + assert(value < new_type->data.enumeration.src_field_count); const_val->data.x_enum.tag = value; const_val->data.x_enum.payload = NULL; const_val->ok = true; -- cgit v1.2.3