diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-09 08:21:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-09 08:21:52 +0000 |
commit | 588d10180fbf05228aec2882f74dd3236dd3ad01 (patch) | |
tree | ca05ed4b48742cc2f85d1c7cbb0577d1e9f58551 /iseq.c | |
parent | a46bf824bf3a6aace879b06159382e0905a48d78 (diff) |
iseq.c: fix conversion
* iseq.c (iseq_load): type is a symbol, and invalid as ID in common.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -516,11 +516,12 @@ iseq_load(VALUE self, VALUE data, VALUE parent, VALUE opt) } if (st_lookup(type_map, type, &iseq_type) == 0) { - const char *typename = rb_id2name(type); + ID typeid = SYM2ID(type); + const char *typename = rb_id2name(typeid); if (typename) rb_raise(rb_eTypeError, "unsupport type: :%s", typename); else - rb_raise(rb_eTypeError, "unsupport type: %p", (void *)type); + rb_raise(rb_eTypeError, "unsupport type: %p", (void *)typeid); } if (parent == Qnil) { |