diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-01 06:17:50 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-01 06:17:50 +0000 |
| commit | 8d86afa0f1aade40ff9eca0fd92f0a6a41222f75 (patch) | |
| tree | 727aec13ad6843f89c289a0cd26b9168ce9ebfff /gc.c | |
| parent | 4e5d7f248aa1eb2eb60461076ca617045b47d196 (diff) | |
| download | ruby-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |
