From 6f64dbde5e67499b4f8a94673e4d693dcc5efbd1 Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 22 May 2008 16:03:59 +0000 Subject: * class.c (rb_singleton_class_clone): Pass Qnil, not 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ class.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 15b1f7d363..b4157d3edc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri May 23 01:03:23 2008 Akinori MUSHA + + * class.c (rb_singleton_class_clone): Pass Qnil, not 0. + Fri May 23 00:51:48 2008 Akinori MUSHA * class.c (clone_method): Totally revamp the previous fix which diff --git a/class.c b/class.c index 38a9be073f..8409f42e3a 100644 --- a/class.c +++ b/class.c @@ -159,7 +159,7 @@ VALUE rb_singleton_class_clone(obj) VALUE obj; { - return singleton_class_clone_int(obj, 0); + return singleton_class_clone_int(obj, Qnil); } void -- cgit v1.2.3