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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-10-23 14:45:46 +09:00
parent 9540a8309c
commit fa85f91e0e
+1 -1
View File
@@ -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