diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | eval.c | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,7 @@ Thu Jan 22 16:21:08 1998 Yukihiro Matsumoto <matz@netlab.co.jp> + * eval.c (rb_eval): some singleton class def cause SEGV. + * eval.c (ALLOCTMP): replace ALLOCA_N, where thread context switch may happen. @@ -2297,6 +2297,9 @@ rb_eval(self, node) rb_clear_cache(); class = rb_singleton_class(class); } + else { + class = CLASS_OF(class); + } result = module_setup(class, node->nd_body); } |