diff options
Diffstat (limited to 'src/eval.cpp')
| -rw-r--r-- | src/eval.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
