etc.c (mrb_float_id): define the function only when necessary

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-03-06 11:54:22 +09:00
parent e5de08b692
commit b1d0a3d3aa
+1 -1
View File
@@ -71,7 +71,7 @@ mrb_obj_to_sym(mrb_state *mrb, mrb_value name)
return 0; /* not reached */
}
#ifndef MRB_NO_FLOAT
#if !defined(MRB_NO_FLOAT) && !defined(MRB_NAN_BOXING)
static mrb_int
mrb_float_id(mrb_float f)
{