diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | insns.def | 2 |
2 files changed, 5 insertions, 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"); } } |