mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue