mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
boxing_word.h: avoid mrb_float_p() when MRB_NO_FLOAT is on; fix #5546
This commit is contained in:
@@ -223,7 +223,9 @@ mrb_type(mrb_value o)
|
||||
mrb_fixnum_p(o) ? MRB_TT_INTEGER :
|
||||
mrb_symbol_p(o) ? MRB_TT_SYMBOL :
|
||||
mrb_undef_p(o) ? MRB_TT_UNDEF :
|
||||
#ifndef MRB_NO_FLOAT
|
||||
mrb_float_p(o) ? MRB_TT_FLOAT :
|
||||
#endif
|
||||
mrb_val_union(o).bp->tt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user