diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-21 15:36:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-21 15:36:17 +0000 |
commit | 6bf97968f17c4a838a879207c6180e6fb209fbc0 (patch) | |
tree | 4c5cad3b22d2176c954f3e0d1e305b1c691acdef | |
parent | 2d44cb6e84dfbb0946181a215f4ba7e6037ff5f6 (diff) | |
download | ruby-6bf97968f17c4a838a879207c6180e6fb209fbc0.tar.gz ruby-6bf97968f17c4a838a879207c6180e6fb209fbc0.tar.xz ruby-6bf97968f17c4a838a879207c6180e6fb209fbc0.zip |
* numeric.c (Init_Numeric): fix_odd_p and fix_even_p are for Fixnum.
patch from Ondrej Bilka <neleai at seznam.cz>. [ruby-core:08904]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | numeric.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Fri Sep 22 00:36:05 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * numeric.c (Init_Numeric): fix_odd_p and fix_even_p are for Fixnum. + patch from Ondrej Bilka <neleai at seznam.cz>. [ruby-core:08904] + Thu Sep 21 22:56:20 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> * common.mk (no-install): not install rdoc actually. @@ -2976,8 +2976,8 @@ Init_Numeric(void) rb_define_method(rb_cFixnum, "to_f", fix_to_f, 0); rb_define_method(rb_cFixnum, "size", fix_size, 0); rb_define_method(rb_cFixnum, "zero?", fix_zero_p, 0); - rb_define_method(rb_cInteger, "odd?", fix_odd_p, 0); - rb_define_method(rb_cInteger, "even?", fix_even_p, 0); + rb_define_method(rb_cFixnum, "odd?", fix_odd_p, 0); + rb_define_method(rb_cFixnum, "even?", fix_even_p, 0); rb_cFloat = rb_define_class("Float", rb_cNumeric); |