summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-10-24 02:55:37 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-10-24 02:55:37 -0700
commita230a88e8994f7be0256e552d5ea186adec7222f (patch)
treebbd3508d29bdecff32824717e93fdd7835765648 /src
parent9eadd05f322397ba2b8f2af85c71d6832572811b (diff)
parente648abf1c1c168ea22fc8ee75a4e675259673d68 (diff)
downloadmruby-a230a88e8994f7be0256e552d5ea186adec7222f.tar.gz
mruby-a230a88e8994f7be0256e552d5ea186adec7222f.zip
Merge pull request #1543 from Fleurer/issue1542
fix #1542
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 414522fb6..ccb67bcc3 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -1333,7 +1333,7 @@ mrb_init_numeric(mrb_state *mrb)
mrb_define_method(mrb, fl, "to_i", flo_truncate, MRB_ARGS_NONE()); /* 15.2.9.3.14 */
mrb_define_method(mrb, fl, "to_int", flo_truncate, MRB_ARGS_NONE());
mrb_define_method(mrb, fl, "truncate", flo_truncate, MRB_ARGS_NONE()); /* 15.2.9.3.15 */
- mrb_define_method(mrb, fixnum, "divmod", flo_divmod, MRB_ARGS_REQ(1));
+ mrb_define_method(mrb, fl, "divmod", flo_divmod, MRB_ARGS_REQ(1));
mrb_define_method(mrb, fl, "to_s", flo_to_s, MRB_ARGS_NONE()); /* 15.2.9.3.16(x) */
mrb_define_method(mrb, fl, "inspect", flo_to_s, MRB_ARGS_NONE());