boxing_word.h: avoid mrb_float_p() when MRB_NO_FLOAT is on; fix #5546

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-09-05 20:59:00 +09:00
parent 43abf36f00
commit ab3db07752
+2
View File
@@ -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;
}