summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-09-02 08:32:52 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 18:20:12 +0900
commit026726dd49421f93783d62f738c37d215f8119f0 (patch)
treec203c8b7c297c62e27fe4b7182f2a5bbf8a7ac0d /src
parentd7986b449d508a3bbbddeea86968be50e7a95038 (diff)
downloadmruby-026726dd49421f93783d62f738c37d215f8119f0.tar.gz
mruby-026726dd49421f93783d62f738c37d215f8119f0.zip
Remove obsolete `MRB_WITHOUT_FLOAT` macro from `numeric.c`.
Diffstat (limited to 'src')
-rw-r--r--src/numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/numeric.c b/src/numeric.c
index f1b06ded4..9fdaf2542 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -1699,7 +1699,7 @@ mrb_init_numeric(mrb_state *mrb)
mrb_define_method(mrb, integer, "<<", int_lshift, MRB_ARGS_REQ(1)); /* 15.2.8.3.12 */
mrb_define_method(mrb, integer, ">>", int_rshift, MRB_ARGS_REQ(1)); /* 15.2.8.3.13 */
mrb_define_method(mrb, integer, "eql?", int_eql, MRB_ARGS_REQ(1)); /* 15.2.8.3.16 */
-#ifndef MRB_WITHOUT_FLOAT
+#ifndef MRB_NO_FLOAT
mrb_define_method(mrb, integer, "to_f", int_to_f, MRB_ARGS_NONE()); /* 15.2.8.3.23 */
#endif
mrb_define_method(mrb, integer, "to_s", int_to_s, MRB_ARGS_OPT(1)); /* 15.2.8.3.25 */