* insns.def (defineclass): was using wrong variable. [ruby-dev:34592]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d7f6b873da
commit
6b1924b176
@ -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>
|
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
|
* io.c (io_fflush): IO#flush problem within threads. a patch from
|
||||||
|
@ -931,7 +931,7 @@ defineclass
|
|||||||
|
|
||||||
if (cbase == Qundef) {
|
if (cbase == Qundef) {
|
||||||
cbase = vm_get_cbase(th);
|
cbase = vm_get_cbase(th);
|
||||||
if (NIL_P(klass)) {
|
if (NIL_P(cbase)) {
|
||||||
rb_raise(rb_eTypeError, "no class/module to define constant");
|
rb_raise(rb_eTypeError, "no class/module to define constant");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user