summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--class.c2
2 files changed, 5 insertions, 1 deletions
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 <knu@iDaemons.org>
+
+ * class.c (rb_singleton_class_clone): Pass Qnil, not 0.
+
Fri May 23 00:51:48 2008 Akinori MUSHA <knu@iDaemons.org>
* 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