зеркало из https://github.com/github/ruby.git
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@10986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e8454ae776
Коммит
ae7ea70a3a
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче