ruby-changes:4804
From: ko1@a...
Date: Mon, 5 May 2008 23:51:19 +0900 (JST)
Subject: [ruby-changes:4804] matz - Ruby:r16298 (trunk): * insns.def (defineclass): was using wrong variable.
matz 2008-05-05 23:51:02 +0900 (Mon, 05 May 2008)
New Revision: 16298
Modified files:
trunk/ChangeLog
trunk/insns.def
Log:
* insns.def (defineclass): was using wrong variable. [ruby-dev:34592]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16298&r2=16297&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/insns.def?r1=16298&r2=16297&diff_format=u
Index: insns.def
===================================================================
--- insns.def (revision 16297)
+++ insns.def (revision 16298)
@@ -931,7 +931,7 @@
if (cbase == Qundef) {
cbase = vm_get_cbase(th);
- if (NIL_P(klass)) {
+ if (NIL_P(cbase)) {
rb_raise(rb_eTypeError, "no class/module to define constant");
}
}
Index: ChangeLog
===================================================================
--- ChangeLog (revision 16297)
+++ ChangeLog (revision 16298)
@@ -1,3 +1,7 @@
+Mon May 5 23:49:40 2008 Yukihiro Matsumoto <matz@r...>
+
+ * insns.def (defineclass): was using wrong variable. [ruby-dev:34592]
+
Mon May 5 20:07:59 2008 Yukihiro Matsumoto <matz@r...>
* io.c (io_fflush): IO#flush problem within threads. a patch from
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/