summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-30 08:52:49 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-30 08:52:49 (GMT)
commit11678caa3454ee944e3c8034d9b3f882e2b9b42f (patch)
tree2727283810fc79c728e76e8deb8856d7c3cbfa39 /numeric.c
parent635cff451ff4405ee8ad5c97d9b5b6a04435e0da (diff)
Define Integer#-@ instead of Fixnum#-@.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 6664143..314207b 100644
--- a/numeric.c
+++ b/numeric.c
@@ -4869,7 +4869,7 @@ Init_Numeric(void)
rb_cFixnum = rb_define_class("Fixnum", rb_cInteger);
- rb_define_method(rb_cFixnum, "-@", rb_int_uminus, 0);
+ rb_define_method(rb_cInteger, "-@", rb_int_uminus, 0);
rb_define_method(rb_cFixnum, "+", fix_plus, 1);
rb_define_method(rb_cFixnum, "-", fix_minus, 1);
rb_define_method(rb_cFixnum, "*", fix_mul, 1);