diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-10-23 14:45:46 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-10-23 14:47:55 +0900 |
| commit | fa85f91e0e3ebff7b2626bfcf550821445c064d7 (patch) | |
| tree | b0fcb192b144d5ac7362b73ddb283ad930a35840 /include | |
| parent | 9540a8309c451ab92fc105ff10868a720e5ec315 (diff) | |
| download | mruby-fa85f91e0e3ebff7b2626bfcf550821445c064d7.tar.gz mruby-fa85f91e0e3ebff7b2626bfcf550821445c064d7.zip | |
Add type cast to avoid an error from `int` and `enum` mixture; fix #4786
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/error.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
