diff options
-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); |