diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-23 02:00:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-23 02:00:12 +0000 |
commit | c5a19b38afb0df3fbc4eb190b08840603039d5fb (patch) | |
tree | c0d824a8577687e340250901aa020f063fc3762c /error.c | |
parent | 26e6372a8718e2670890dcab0db4f9adac515d3e (diff) | |
download | ruby-c5a19b38afb0df3fbc4eb190b08840603039d5fb.tar.gz |
* error.c (rb_check_type): check for type from extensions for ruby
1.8. see [ruby-core:33797].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -354,7 +354,10 @@ rb_check_type(VALUE x, int t) } type++; } - rb_bug("unknown type 0x%x (0x%x given)", t, TYPE(x)); + if (xt > T_MASK && xt <= 0x3f) { + rb_fatal("unknown type 0x%x (0x%x given, probably comes from extension library for ruby 1.8)", t, xt); + } + rb_bug("unknown type 0x%x (0x%x given)", t, xt); } } |