ruby-changes:13378
From: nobu <ko1@a...>
Date: Tue, 29 Sep 2009 13:49:14 +0900 (JST)
Subject: [ruby-changes:13378] Ruby:r25148 (trunk): * vm_method.c (rb_method_definition_eq): non-null definition is
nobu 2009-09-29 13:49:00 +0900 (Tue, 29 Sep 2009) New Revision: 25148 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25148 Log: * vm_method.c (rb_method_definition_eq): non-null definition is not equal to null definition. Modified files: trunk/ChangeLog trunk/vm_method.c Index: ChangeLog =================================================================== --- ChangeLog (revision 25147) +++ ChangeLog (revision 25148) @@ -1,5 +1,8 @@ -Tue Sep 29 13:37:50 2009 Nobuyoshi Nakada <nobu@r...> +Tue Sep 29 13:48:58 2009 Nobuyoshi Nakada <nobu@r...> + * vm_method.c (rb_method_definition_eq): non-null definition is + not equal to null definition. + * vm_method.c (rb_add_method_def): nothing to do if old method had same definition. [ruby-dev:39397] Index: vm_method.c =================================================================== --- vm_method.c (revision 25147) +++ vm_method.c (revision 25148) @@ -799,9 +799,8 @@ static int rb_method_definition_eq(const rb_method_definition_t *d1, const rb_method_definition_t *d2) { - if (!d1) { - return !d2; - } + if (d1 == d2) return 1; + if (!d1 || !d2) return 0; if (d1->type != d2->type) { return 0; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/