summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-05 14:51:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-05 14:51:02 +0000
commit0110fa16448f6013c6ae415df95302e2b3a7cf1b (patch)
treea70b6cc2c041c3477994508f2cb592c56f6153ec
parent952fbdf450678ff1ddd9e0fbafa84e0059215b30 (diff)
downloadruby-0110fa16448f6013c6ae415df95302e2b3a7cf1b.tar.gz
ruby-0110fa16448f6013c6ae415df95302e2b3a7cf1b.tar.xz
ruby-0110fa16448f6013c6ae415df95302e2b3a7cf1b.zip
* insns.def (defineclass): was using wrong variable. [ruby-dev:34592]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--insns.def2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9453b52f2..49e1a4548 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon May 5 23:49:40 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * insns.def (defineclass): was using wrong variable. [ruby-dev:34592]
+
Mon May 5 20:07:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* io.c (io_fflush): IO#flush problem within threads. a patch from
diff --git a/insns.def b/insns.def
index 69849ff41..ba7beec33 100644
--- a/insns.def
+++ b/insns.def
@@ -931,7 +931,7 @@ defineclass
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");
}
}