Add type cast to avoid an error from `int` and `enum` mixture; fix
MODIFY
include/mruby/error.h
include/mruby/error.h
@@ -52,7 +52,7 @@ mrb_break_value_get(struct RBreak *brk)
{
mrb_value val;
val.value = brk->value;
- val.tt = brk->flags & RBREAK_VALUE_TT_MASK;
+ val.tt = (enum mrb_vtype)(brk->flags & RBREAK_VALUE_TT_MASK);
return val;
}
static inline void

Add type cast to avoid an error from `int` and `enum` mixture; fix #4786