Skip to content

Commit

Permalink
Add cast to mrb_int in mrb_fixnum() when MRB_WORD_BOXING.
Browse files Browse the repository at this point in the history
Without this cast, `long int:63` can cause warnings.
  • Loading branch information
matz committed May 25, 2017
1 parent 7e47316 commit 9e40586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mruby/boxing_word.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MRB_API mrb_value mrb_word_boxing_float_pool(struct mrb_state*, mrb_float);
#define mrb_ptr(o) (o).value.p
#define mrb_cptr(o) (o).value.vp->p
#define mrb_float(o) (o).value.fp->f
#define mrb_fixnum(o) (o).value.i
#define mrb_fixnum(o) ((mrb_int)(o).value.i)
#define mrb_symbol(o) (o).value.sym

static inline enum mrb_vtype
Expand Down

0 comments on commit 9e40586

Please sign in to comment.