From 487a1d4148e4fca357f89128240de41aec2a150e Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 14 Aug 2003 17:20:14 +0000 Subject: * gc.c (id2ref): recycle check should be done by klass == 0. [ruby-core:01408] * eval.c (Init_Thread): Continuation#[] added. [ruby-talk:79028] * parse.y (mlhs_node): should allow "::Foo" (colon3) as lhs. * parse.y (lhs): ditto. * parse.y (yylex): should return tCOLON3 right after kCLASS. [ruby-talk:78918] * error.c (exc_initialize): was converting argument to string too eagerly. Only check was needed. [ruby-talk:78958] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index a76d5c81b..1024c1a50 100644 --- a/gc.c +++ b/gc.c @@ -1639,7 +1639,7 @@ id2ref(obj, id) if (!is_pointer_to_heap((void *)ptr)) { rb_raise(rb_eRangeError, "0x%lx is not id value", p0); } - if (BUILTIN_TYPE(ptr) == 0) { + if (RBASIC(ptr)->klass == 0) { rb_raise(rb_eRangeError, "0x%lx is recycled object", p0); } return (VALUE)ptr; -- cgit