diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-14 17:20:14 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-14 17:20:14 +0000 |
commit | f3d25fdd9c58942d5e2d909f16b1dd8adabd21e1 (patch) | |
tree | ef0eacfd67e503e34658cc9b21e7797b96f1132b /gc.c | |
parent | 206efa13561648716e65fc7e87f4967cbb707571 (diff) |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@4390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |