mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval_method.h (rb_add_method): fix to check 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
62deb7dbbd
commit
a5c2d58428
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Jun 24 22:32:00 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* eval_method.h (rb_add_method): fix to check 0.
|
||||
|
||||
Sun Jun 24 22:00:17 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* insn_send.ci: removed.
|
||||
|
|
|
@ -150,7 +150,7 @@ rb_add_method(VALUE klass, ID mid, NODE * node, int noex)
|
|||
rb_warning("method redefined; discarding old %s", rb_id2name(mid));
|
||||
}
|
||||
}
|
||||
if (klass == rb_cObject && node->nd_mid == init) {
|
||||
if (klass == rb_cObject && node && node->nd_mid == init) {
|
||||
rb_warn("redefining Object#initialize may cause infinite loop");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue