From fa85f91e0e3ebff7b2626bfcf550821445c064d7 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 23 Oct 2019 14:45:46 +0900 Subject: Add type cast to avoid an error from `int` and `enum` mixture; fix #4786 --- include/mruby/error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mruby/error.h b/include/mruby/error.h index 20090d197..d24b5b0c3 100644 --- a/include/mruby/error.h +++ b/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 -- cgit v1.2.3