summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-01 06:17:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-01 06:17:50 +0000
commit8d86afa0f1aade40ff9eca0fd92f0a6a41222f75 (patch)
tree727aec13ad6843f89c289a0cd26b9168ce9ebfff /gc.c
parent4e5d7f248aa1eb2eb60461076ca617045b47d196 (diff)
downloadruby-8d86afa0f1aade40ff9eca0fd92f0a6a41222f75.tar.gz
ruby-8d86afa0f1aade40ff9eca0fd92f0a6a41222f75.tar.xz
ruby-8d86afa0f1aade40ff9eca0fd92f0a6a41222f75.zip
* gc.c (id2ref): T_VALUES is less than T_BLOCK. [ruby-dev:31911]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 7dd5c4e68..4b239b634 100644
--- a/gc.c
+++ b/gc.c
@@ -2069,7 +2069,7 @@ id2ref(VALUE obj, VALUE objid)
return ID2SYM(symid);
}
- if (!is_pointer_to_heap((void *)ptr)|| BUILTIN_TYPE(ptr) >= T_BLOCK) {
+ if (!is_pointer_to_heap((void *)ptr) || BUILTIN_TYPE(ptr) >= T_VALUES) {
rb_raise(rb_eRangeError, "%p is not id value", p0);
}
if (BUILTIN_TYPE(ptr) == 0 || RBASIC(ptr)->klass == 0) {