diff options
Diffstat (limited to 'src/eval.cpp')
| -rw-r--r-- | src/eval.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eval.cpp b/src/eval.cpp index 31683a4873..b3b8b81b35 100644 --- a/src/eval.cpp +++ b/src/eval.cpp @@ -694,6 +694,9 @@ void eval_const_expr_implicit_cast(CastOp cast_op, const_val->ok = true; break; } + case CastOpEnumToInt: + bignum_init_unsigned(&const_val->data.x_bignum, other_val->data.x_enum.tag); + const_val->ok = true; } } |
