mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add type cast to avoid an error from int and enum mixture; fix #4786
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user